Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/c/demos/tetris/tetris.c

    r3bacee1 r205f1add  
    5555    "\tThe Regents of the University of California.  All rights reserved.\n";
    5656
    57 #include <sys/time.h>
     57#include <time.h>
    5858#include <err.h>
    5959#include <errno.h>
     
    171171static void srandomdev(void)
    172172{
    173         struct timeval tv;
    174 
    175         gettimeofday(&tv, NULL);
    176         srand(tv.tv_sec + tv.tv_usec / 100000);
     173        struct timespec ts;
     174
     175        getuptime(&ts);
     176        srand(tv.tv_sec + tv.tv_nsec / 100000000);
    177177}
    178178
Note: See TracChangeset for help on using the changeset viewer.