Changes in uspace/lib/c/generic/stdlib.c [ff98ce8:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/stdlib.c
rff98ce8 r9d58539 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 % RAND_MAX;46 glbl_seed = seed; 47 47 } 48 48
Note:
See TracChangeset
for help on using the changeset viewer.