Expand description
The implementation is based on the Wang Yi hash final version 4.2.
Source: ‘https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h’
Structs§
Functions§
- hash
- hash64
- A useful 64bit-64bit mix function to produce deterministic pseudo random numbers that can pass BigCrush and PractRand.
- make_
secret - Make your own secret.
- rand⚠
- The rand PRNG that pass BigCrush and PractRand.
- to_gau
- Convert any 64-bit pseudo random numbers to APPROXIMATE Gaussian distribution. It can be combined with rand, hash64 or hash.
- to_u0k
- Fast range integer random number generation on [0,k) credit to Daniel Lemire. It can be combined with rand, hash64 or hash.
- to_u01
- Convert any 64-bit pseudo random numbers to uniform distribution [0,1). It can be combined with rand, hash64 or hash.