Changes in uspace/lib/c/generic/stdlib.c [9d58539:ff98ce8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/stdlib.c
r9d58539 rff98ce8 39 39 long int random(void) 40 40 { 41 return glbl_seed = ((1366 *glbl_seed + 150889) % RAND_MAX);41 return glbl_seed = ((1366 * glbl_seed + 150889) % RAND_MAX); 42 42 } 43 43 44 44 void srandom(unsigned int seed) 45 45 { 46 glbl_seed = seed ;46 glbl_seed = seed % RAND_MAX; 47 47 } 48 48
Note:
See TracChangeset
for help on using the changeset viewer.