Changeset 2b3dd78 in mainline for uspace/app/tetris/tetris.c


Ignore:
Timestamp:
2018-01-31T12:02:00Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5595841
Parents:
a0a9cc2 (diff), 14d789c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'upstream/master' into forwardport

change tmon includes because of new stdlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/tetris.c

    ra0a9cc2 r2b3dd78  
    156156const struct shape *randshape(void)
    157157{
    158         const struct shape *tmp = &shapes[random() % 7];
     158        const struct shape *tmp = &shapes[rand() % 7];
    159159        int i;
    160         int j = random() % 4;
     160        int j = rand() % 4;
    161161       
    162162        for (i = 0; i < j; i++)
     
    171171       
    172172        gettimeofday(&tv, NULL);
    173         srandom(tv.tv_sec + tv.tv_usec / 100000);
     173        srand(tv.tv_sec + tv.tv_usec / 100000);
    174174}
    175175
Note: See TracChangeset for help on using the changeset viewer.