Sha256: dcfc74ab302eb5ef7e75ef993aaf86498565c392695d21f1d521c4fa9633c12d

Contents?: true

Size: 1.9 KB

Versions: 16

Compression:

Stored size: 1.9 KB

Contents

// Copyright 2018 Developers of the Rand project.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! The PCG random number generators.
//!
//! This is a native Rust implementation of a small selection of PCG generators.
//! The primary goal of this crate is simple, minimal, well-tested code; in
//! other words it is explicitly not a goal to re-implement all of PCG.
//!
//! This crate provides:
//!
//! -   `Pcg32` aka `Lcg64Xsh32`, officially known as `pcg32`, a general
//!     purpose RNG. This is a good choice on both 32-bit and 64-bit CPUs
//!     (for 32-bit output).
//! -   `Pcg64` aka `Lcg128Xsl64`, officially known as `pcg64`, a general
//!     purpose RNG. This is a good choice on 64-bit CPUs.
//! -   `Pcg64Mcg` aka `Mcg128Xsl64`, officially known as `pcg64_fast`,
//!     a general purpose RNG using 128-bit multiplications. This has poor
//!     performance on 32-bit CPUs but is a good choice on 64-bit CPUs for
//!     both 32-bit and 64-bit output.
//!
//! Both of these use 16 bytes of state and 128-bit seeds, and are considered
//! value-stable (i.e. any change affecting the output given a fixed seed would
//! be considered a breaking change to the crate).

#![doc(
    html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
    html_favicon_url = "https://www.rust-lang.org/favicon.ico",
    html_root_url = "https://rust-random.github.io/rand/"
)]
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![no_std]

#[cfg(not(target_os = "emscripten"))] mod pcg128;
mod pcg64;

#[cfg(not(target_os = "emscripten"))]
pub use self::pcg128::{Lcg128Xsl64, Mcg128Xsl64, Pcg64, Pcg64Mcg};
pub use self::pcg64::{Lcg64Xsh32, Pcg32};

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-28.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-27.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-26.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-25.0.2 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rand_pcg-0.3.1/src/lib.rs