HomeFreeBSD

MFC r309650:

Description

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.

Details

Provenance
edAuthored on
Parents
rS310320: MFC r309650:
Branches
Unknown
Tags
Unknown