#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

#14 in Algorithms

Download history 86778/week @ 2019-07-18 91570/week @ 2019-07-25 96020/week @ 2019-08-01 103737/week @ 2019-08-08 101632/week @ 2019-08-15 96154/week @ 2019-08-22 98352/week @ 2019-08-29 113052/week @ 2019-09-05 111006/week @ 2019-09-12 111640/week @ 2019-09-19 120593/week @ 2019-09-26 128498/week @ 2019-10-03 124386/week @ 2019-10-10 124624/week @ 2019-10-17 132623/week @ 2019-10-24

388,773 downloads per month
Used in 2,041 crates (20 directly)

MIT/Apache

58KB
650 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

~61–540KB
~11K SLoC