diff options
author | ed <ed@FreeBSD.org> | 2016-12-20 07:42:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2016-12-20 07:42:15 +0000 |
commit | 3283329fd246fab46c1594aef819d12a0d95c328 (patch) | |
tree | 740546d0789fd8c996c8f2c4a3974d6ee9028ab5 /sys/cddl | |
parent | fafe6d3698b8e5bf9417afdefa5befadb512dd8d (diff) | |
download | FreeBSD-src-3283329fd246fab46c1594aef819d12a0d95c328.zip FreeBSD-src-3283329fd246fab46c1594aef819d12a0d95c328.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 'sys/cddl')
0 files changed, 0 insertions, 0 deletions