Changeset c718bda in mainline for uspace/app/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/app/tetris/tetris.c
rba29018 rc718bda 156 156 const struct shape *randshape(void) 157 157 { 158 const struct shape *tmp = &shapes[rand om() % 7];158 const struct shape *tmp = &shapes[rand() % 7]; 159 159 int i; 160 int j = rand om() % 4;160 int j = rand() % 4; 161 161 162 162 for (i = 0; i < j; i++) … … 171 171 172 172 gettimeofday(&tv, NULL); 173 srand om(tv.tv_sec + tv.tv_usec / 100000);173 srand(tv.tv_sec + tv.tv_usec / 100000); 174 174 } 175 175
Note:
See TracChangeset
for help on using the changeset viewer.