Changeset c718bda in mainline for uspace/dist/src/c/demos/tetris/tetris.c
- Timestamp:
- 2018-01-15T21:40:49Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dbbbe75b
- Parents:
- ba29018
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:20:07)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:40:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/c/demos/tetris/tetris.c
rba29018 rc718bda 157 157 const struct shape *randshape(void) 158 158 { 159 const struct shape *tmp = &shapes[rand om() % 7];159 const struct shape *tmp = &shapes[rand() % 7]; 160 160 int i; 161 int j = rand om() % 4;161 int j = rand() % 4; 162 162 163 163 for (i = 0; i < j; i++) … … 172 172 173 173 gettimeofday(&tv, NULL); 174 srand om(tv.tv_sec + tv.tv_usec / 100000);174 srand(tv.tv_sec + tv.tv_usec / 100000); 175 175 } 176 176
Note:
See TracChangeset
for help on using the changeset viewer.