#rng #nist #testing #diehard #800-22

rngcheck

Helpers for checking random number generator operation

2 releases

0.1.1 Jul 1, 2023
0.1.0 Jul 1, 2023

#25 in #nist

Download history 84/week @ 2024-11-16 94/week @ 2024-11-23 43/week @ 2024-11-30 180/week @ 2024-12-07 194/week @ 2024-12-14 147/week @ 2024-12-21 171/week @ 2024-12-28 158/week @ 2025-01-04 200/week @ 2025-01-11 344/week @ 2025-01-18 223/week @ 2025-01-25 306/week @ 2025-02-01 183/week @ 2025-02-08 262/week @ 2025-02-15 253/week @ 2025-02-22 263/week @ 2025-03-01

1,010 downloads per month

MIT license

11KB
201 lines

rngcheck

Random number generator tests based on NIST 800-22 and Diehard / Dieharder, designed for function checks of RNGs at runtime (and in no_std contexts).

Status

Work in progress, only a couple of tests have been implemented and these may be incomplete.


lib.rs:

A helper crate for testing the operation of cryptographic random number generators

This provides a subset of tests from NIST 800-22 and the Diehard / Dieharder suites suitable for runtime testing of RNGs.

NOTE: This is a an incomplete and broadly untested implementation, to be extended as is useful / required. If we're missing a test that would be useful, please feel free to open an issue or PR!

Dependencies

~395KB