summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2016-12-20 07:50:49 +0000
committered <ed@FreeBSD.org>2016-12-20 07:50:49 +0000
commitaf93e7bbffb883adfbde38697424bd2822cf54ea (patch)
treeed964320fc996e4a42ac14fd762f2c7a7d90b299 /share
parent03b964e76b5da3858a8c1df0515ffb6b5c35c6d1 (diff)
downloadFreeBSD-src-af93e7bbffb883adfbde38697424bd2822cf54ea.zip
FreeBSD-src-af93e7bbffb883adfbde38697424bd2822cf54ea.tar.gz
MFC r309650:
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.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud