1. Only showing results from lib.rs

    Clear filter to show all search results

  2. Jul 22, 2024WyRand-rs. A fast & portable non-cryptographic pseudorandom number generator written in Rust, and optionally, the hashing algorithm as well. The implementations for both the PRNG and hasher are based on the C reference implementation wyhash, a simple and fast hasher but not cryptographically secure. It's known to be extremely fast and ...
  3. See also: wyrand, wyhash, fastrand, turborand, bevy_turborand, squares, nist-pqc-seeded-rng, rand_hc, rand_seeder, bevy_rand, dee Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.Content of this page is not necessarily endorsed by the authors of the crate.
  4. Dec 8, 202413,737,321 downloads per month Used in 23,002 crates (680 directly). Apache-2.0 OR MIT. 33KB 592 lines. fastrand. A simple and fast random number generator. The implementation uses Wyrand, a simple and fast generator but not cryptographically secure.. Examples. Flip a coin: if fastrand::bool() {println!("heads");} else {println!("tails");}Generate a random i32:. let num = fastrand::i32(..
  5. These default features are set whenever wyrand is added without default-features = false somewhere in the dependency tree. debug default hash rand_core default. Enables rand_core. serde1. Enables serde. wyhash randomised_wyhash? randomised_wyhash fully_randomised_wyhash? threadrng_wyhash? = wyhash. Enables getrandom. fully_randomised_wyhash ...
  6. Nov 4, 2024# random # rand # wyrand # performance # simple no-std supply-chain-trust-example-crate-000078 A simple and fast random number generator. Owned by muhammad-hassnain. Install; API reference; Source; 1 stable release. 2.1.1 Nov 4, 2024 #1613 in Algorithms. Apache-2.0 OR MIT. 33KB 591 lines. fastrand.
  7. Dec 31, 2024Related: turborand, wyrand, bevy_prng, bevy_turborand See also: urandom, bevy_mod_physx, bevy_defer, bevy_gizmos, bevy_stardust, bevy-trait-query, bevy_macro_utils, bevy-persistent, rand, bevy-inspector-egui, bevy_app Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.
  8. Nov 30, 2024For example, wyrand based structs (RngComponent et al) are behind the wyrand flag, which is enabled by default. For a higher quality entropy source (though it will be slower), chacha flag provides RNG provided by the ChaCha8 algorithm, such as ChaChaRngComponent. RngPlugin is available when either wyrand or chacha is enabled.
  9. TL;DR: tinyrand is 2x faster than fastrand and 6x faster than rand. Statistical properties. It's impossible to tell for certain whether a certain PRNG is good; the answer is probabilistic. All three algorithms stand up well against the Dieharder barrage of tests, but Wyrand and SplitMix are a little better than Xorshift. (Tested on 30.8 billion samples.)
  10. Dec 31, 2024wyrand - This enables the exporting of newtyped WyRand from wyrand, the same algorithm in use within fastrand/turborand. In addition to these feature flags to enable various supported algorithms, there's also serialize flag to provide serde support for Serialize/Deserialize, which is enabled by default.
  11. Feb 24, 2024884 downloads per month Used in 14 crates (4 directly). Apache-2.0 OR MIT. 220KB 2.5K SLoC turborand. Fast random number generators. turborand's internal implementations use Wyrand, a simple and fast generator but not cryptographically secure, and also ChaCha8, a cryptographically secure generator tuned to 8 rounds of the ChaCha algorithm in order to increase throughput considerably without ...

    Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX