#random #opinionated #testing #numbers #level #bit

no-std star_rng

opinionated PRNG for easier fuzz testing

1 unstable release

0.1.0 Apr 10, 2024

#2081 in Algorithms

Download history 101/week @ 2024-07-23 52/week @ 2024-07-30 11/week @ 2024-08-06 29/week @ 2024-08-13 118/week @ 2024-08-20 15/week @ 2024-08-27 94/week @ 2024-09-10 60/week @ 2024-09-17 62/week @ 2024-09-24 21/week @ 2024-10-01 55/week @ 2024-10-08 19/week @ 2024-10-15 2/week @ 2024-10-22 35/week @ 2024-10-29 51/week @ 2024-11-05

111 downloads per month

MIT/Apache

16KB
253 lines

StarRNG - Xoshiro128StarStar-based opinionated psuedorandom number generator

This crate features an evolved version of a psuedorandom number generation strategy that I have been using for several years now. The internal rng is buffered at the bit level to dramatically improve efficiency when many single random booleans or small integers are being used.

no-std and even no-alloc compatible thanks to awint.

Dependencies

~1MB
~20K SLoC