1 unstable release
0.9.0 | Aug 2, 2024 |
---|
#449 in Math
26KB
291 lines
4.4BSD-Lite2 random number generator
- Zero dependencies.
- Safe Rust.
- Non viral BSD-3 License.
- libc style API.
- No built in support for harvesting randomness from entropy source.
- No special multi threading support. You can Send generator to other thread or make thread local instance.
Licensing
This package uses Revised BSD license.
Originally 4.4BSD-Lite2 got released under BSD-4 but it got relicensed as BSD-3. Advertising cause got removed. More info at: https://www.dragonflybsd.org/docs/developer/DragonFly_BSD_License/
Credits
This product includes software developed by the University of California, Berkeley and its contributors.
Upstream code
Code comes and is tested against 4.4BSD stdlib
- https://github.com/sergev/4.4BSD-Lite2/tree/master/usr/src/lib/libc/stdlib
- https://github.com/freebsd/freebsd-src/blob/releng/4.11/lib/libc/stdlib/rand.c
- https://cvsweb.openbsd.org/src/lib/libc/stdlib/
- https://github.com/NetBSD/src/blob/trunk/lib/libc/stdlib/rand.c
- https://gitweb.dragonflybsd.org/dragonfly.git/tree/5daa25b05ec172803258b0c1f1148cadfccdba9e:/lib/libc/stdlib
History
- Its not clear yet in which BSD version this random number generator first appeared. Under investigation.
- FreeBSD 5 replaced this algorithm with different one.
- DragonFlyBSD merged FreeBSD change.
- It is still in current NetBSD-10 source tree.
- It is still in OpenBSD source tree.
- Included in glibc-2.26