Changelog
View Source0.1.0
Initial release.
knot:uniform/1— fast non-cryptographic PRNG NIF, drop-in replacement forgranderl:uniform/1. Uses wyrand (1 multiply + 1 xor + 1 add per draw, BigCrush-passing) with the biased multiply-and-shift bounded method (single multiply, no rejection branch; bias < 1e-7 for bounds ≤ 256).- Pure C NIF — ~75 LOC. No Rust toolchain, no cargo, no rustler.
Per-OS-thread state via
__thread. Lazy seed fromgetrandom/arc4random_buf. - Build via
c_src/build.sh(granderl-stylepre_hooks), with the OTP 27+erl -noshell -s init stop -evalorder bug fixed —-evalruns before init terminates.