LeptonFlurry is the efficient non-cryptographic CBRNG that has excellent statistical randomness quality test results, low-footprint implementation (efficient memory usage and small code size), massive parallelism (up to 2⁶⁴ key-based independent bitstreams that each have a counter-based period of 2¹²⁸), no division/modulus/multiplication operators and ultra-fast speed.
LeptonFlurry was created by William Stafford Parsons as a product of Eightomic.
LeptonFlurry is licensed with BSD-3-Clause.
Each mention of LeptonFlurry refers to each of the 6 following variants individually (leptonflurry1x32, leptonflurry2x32, leptonflurry4x32, leptonflurry1x64, leptonflurry2x64 and leptonflurry4x64) implemented in C (requiring the stdint.h header to define both a 32-bit, unsigned integral type for uint32_t and a 64-bit, unsigned integral type for uint64_t).
Each 32-bit LeptonFlurry variant uses 4 uint32_t counter integers that must be seeded and 2 uint32_t key integers that must be seeded.
The leptonflurry1x32 function generates a deterministic pseudorandom uint32_t integer as the return value.
The leptonflurry2x32 function generates 2 deterministic pseudorandom uint32_t integers in the output array.
The leptonflurry4x32 function generates 4 deterministic pseudorandom uint32_t integers in the output array.
leptonflurry1x64, leptonflurry2x64 and leptonflurry4x64 aren't ready to publish yet.
LeptonFlurry bitstreams yielded the following excellent results (with multiple increment combinations of the counter and the key) from statistical randomness quality tests.
LeptonFlurry passed cryptographic BIC tests with bitstreams that each had XORed output pairs (as a result of bit flips that were equidistributed among both the counter and the key).
LeptonFlurry passed dieharder -Y 1 -a -g 200 -k 2 (each ambiguous result resolved to a PASSED result).
LeptonFlurry passed assess 1000000 with 100 bitstreams.
LeptonFlurry passed next-bit tests (that combined BIC and SAC to indicate asymptotic next-bit security properties).
LeptonFlurry passed RNG_test stdin -tlmin 1KB -tlmax 32TB.
LeptonFlurry passed cryptographic SAC tests (with a near-perfect score between 0.4995 and 0.5005) with 100 bitstreams that each had 2¹⁹ output pairs (as a result of bit flips that were equidistributed among both the counter and the key).
LeptonFlurry passed BigCrush and pseudoDIEHARD.
