Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.91 KB

File metadata and controls

35 lines (23 loc) · 1.91 KB

Rand OS

Test Status Crate Book API

Provides OsRng over rand_core and getrandom. You don't need this if you use rand, but it's also pretty harmless to depend on both crates since OsRng is just a shim over getrandom.

Crate Features

With std, the error type implements std::error::Error.

WebAssembly support

The WASI and Emscripten targets are directly supported.

The wasm32-unknown-unknown target is not automatically supported. To enable support for this target, enable the wasm_js feature. Warning: this feature can break wasm32-unknown-unknown builds on non-web platforms! Do not enable this feature in libraries unless you are sure you do not want to support non-web Wasm32 platforms.

For more information, refer to getrandom documentation for WebAssembly.

License

Rand 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.