Crate drand48
Source - extract
- extracting values from DRAND48.next() output
- DRAND48
- Structure for the 48-bit Linear Congruential Generator (LCG) drand48.
- A
- Multiplier a = 0x5DEECE66D (25214903917_i64)
- C
- Increment c = 0xB (11_i64)
- M
- Modulo m = 2^48 (281_474_976_710_656_i64)
- MAX
- Maximum returned value is m - 1
- MIN
- Minimum returned value 0
- PERIOD
- Period is 2^48 = m (full period LCG)
- SEED
- Default seed is 0x1234_abcd_330e
- clamp_seed
- clamp seed into valid drand48 range
- srand48
- Creates a generator seeded by srand48() POSIX.1 method
- validate_seed
- Check if seed is valid for drand48 generator.