Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add and use internal header for *rand48 lcg | Rich Felker | 2018-09-12 | 1 | -0/+1 |
| | |||||
* | fix incorrect sequence generation in *rand48 prng functions | Rich Felker | 2014-09-22 | 1 | -2/+2 |
| | | | | | | | | | | | patch by Jens Gustedt. this fixes a bug reported by Nadav Har'El. the underlying issue was that a left-shift by 16 bits after promotion of unsigned short to int caused integer overflow. while some compilers define this overflow case as "shifting into the sign bit", doing so doesn't help; the sign bit then gets extended through the upper bits in subsequent arithmetic as unsigned long long. this patch imposes a promotion to unsigned prior to the shift, so that the result is well-defined and matches the specified behavior. | ||||
* | include cleanups: remove unused headers and add feature test macros | Szabolcs Nagy | 2013-12-12 | 1 | -1/+0 |
| | |||||
* | prng: make rand_r have 2^32 period instead of 2^31 | Szabolcs Nagy | 2013-06-08 | 1 | -1/+1 |
| | | | | | this is a minor fix to increase the period of the obsolete rand_r a bit. an include header in __rand48_step.c is fixed as well. | ||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+14 |