#random #rng #os

rand_os

OS backed Random Number Generator

7 releases

✓ Uses Rust 2018 edition

0.2.2 Aug 28, 2019
0.2.1 Aug 8, 2019
0.2.0 Jun 6, 2019
0.1.3 Mar 5, 2019
0.1.2 Jan 29, 2019

#5 in Algorithms

Download history 81896/week @ 2019-05-15 87040/week @ 2019-05-22 86068/week @ 2019-05-29 84112/week @ 2019-06-05 95009/week @ 2019-06-12 97104/week @ 2019-06-19 90157/week @ 2019-06-26 78566/week @ 2019-07-03 82470/week @ 2019-07-10 85967/week @ 2019-07-17 91672/week @ 2019-07-24 94162/week @ 2019-07-31 102343/week @ 2019-08-07 103682/week @ 2019-08-14 96500/week @ 2019-08-21

388,773 downloads per month
Used in 1,741 crates (18 directly)

MIT/Apache

60KB
669 lines

rand_os

Build Status Build Status Latest version Book API API Minimum rustc version

A random number generator that retrieves randomness straight from the operating system.

This crate is deprecated: OsRng is available in rand_core since version 0.5.1.

This crate provides OsRng as a shim around getrandom implementing RngCore from rand_core.

Note: the rand crate provides an equivalent OsRng; the two implementations are equivalent, though distinct types.

Links:

License

rand_os is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

Dependencies

~60–550KB
~11K SLoC