summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/jrand48.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r309650:ed2016-12-201-1/+4
| | | | | | | | | Properly sign extend the result of jrand48() and mrand48(). These functions are supposed to return a value between [-2^31, 2^31). This doesn't seem to work on 64-bit systems, where we return a value between [0, 3^32). Patch up the function to use proper casts to int32_t. While there, fix some other style bugs.
* Fix the style of the SCM ID's.obrien2002-03-221-0/+3
| | | | I believe have made all of libc .c's as consistent as possible.
* Added *ran48 functions, and put them in the correct place this time.wollman1994-09-231-0/+21
Obtained from: 1.1.5
OpenPOWER on IntegriCloud