Crates.io | bsd4random |
lib.rs | bsd4random |
version | 0.9.1-alpha.3 |
created_at | 2024-08-02 06:14:29.137763+00 |
updated_at | 2025-05-29 21:28:08.511045+00 |
description | 4.1BSD libc random number generator |
homepage | https://gitlab.com/hsn10/bsd4random |
repository | https://gitlab.com/hsn10/bsd4random.git |
max_upload_size | |
id | 1322874 |
size | 83,885 |
Linear congruential generator LCG with modulus m = 2^31, multiplier a = 1103515245 and increment c = 12345. Outputs 31 bits of randomness with more randomness in higher bits. Generator have full 2^31 period.
This generator is listed in OESIS database as A096553.
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/
This product includes software developed by the University of California, Berkeley and its contributors.
Code comes and is tested against 4.4BSD stdlib