21 releases (9 stable)

5.0.0 Sep 1, 2023
4.0.0-alpha.3 Aug 26, 2020
3.0.1 Oct 4, 2019
3.0.0-rc.3 Jul 16, 2019
0.890.0 May 14, 2018

#226 in Cryptography

Download history 103/week @ 2023-12-11 135/week @ 2023-12-18 76/week @ 2023-12-25 83/week @ 2024-01-01 131/week @ 2024-01-08 72/week @ 2024-01-15 86/week @ 2024-01-22 64/week @ 2024-01-29 88/week @ 2024-02-05 106/week @ 2024-02-12 124/week @ 2024-02-19 154/week @ 2024-02-26 170/week @ 2024-03-04 133/week @ 2024-03-11 126/week @ 2024-03-18 127/week @ 2024-03-25

566 downloads per month
Used in 11 crates (9 directly)

Zlib OR Apache-2.0 OR MIT

24KB
454 lines

randomize

Pseudo-random number generator crate.

NOT FOR CRYPTOGRAPHIC PURPOSES.


lib.rs:

Pseudo-random number generator crate.

NOT FOR CRYPTOGRAPHIC PURPOSES.

Using This Crate

  • Create a [PCG32] or [PCG32K] value as your generator.
    • If you enable this crate's getrandom cargo feature then both types will have constructor functions to handle seeding a generator from the getrandom function.
  • Call next_u32 on the generator to get pseudo-random u32 values.
  • At your option, import the [Gen32] trait for various extension methods.

Dependencies

~120–250KB