clock-rand 1.0.2

Next-generation random number generation with blockchain-aware RNGs, fork detection, and cryptographic security
Documentation
[[bench]]
harness = false
name = "comparison"
path = "benches/comparison.rs"
required-features = ["crypto_rng"]

[[bench]]
harness = false
name = "crypto_rng"
path = "benches/crypto_rng.rs"
required-features = ["crypto_rng", "custom_rng"]

[[bench]]
harness = false
name = "fast_rng"
path = "benches/fast_rng.rs"

[dependencies.aes]
optional = true
version = "0.8.4"

[dependencies.blake3]
optional = true
version = "1.8.3"

[dependencies.chacha20]
optional = true
version = "0.9.1"

[dependencies.rand_core]
version = "0.9.4"

[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0.228"

[dependencies.serde_json]
optional = true
version = "1.0.149"

[dependencies.wasm-bindgen]
optional = true
version = "0.2.106"

[dependencies.zeroize]
features = ["zeroize_derive"]
optional = true
version = "1.8.2"

[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.8.1"

[dev-dependencies.proptest]
version = "1.9.0"

[dev-dependencies.quickcheck]
version = "1.0.3"

[dev-dependencies.rand]
version = "0.9.2"

[dev-dependencies.rand_chacha]
version = "0.9.0"

[dev-dependencies.rand_pcg]
version = "0.9.0"

[dev-dependencies.rand_xoshiro]
version = "0.7.0"

[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"

[[example]]
name = "blockchain_seeding"
path = "examples/blockchain_seeding.rs"

[[example]]
name = "fork_detection"
path = "examples/fork_detection.rs"

[[example]]
name = "serialization"
path = "examples/serialization.rs"

[[example]]
name = "thread_safe"
path = "examples/thread_safe.rs"

[features]
aes = []
crypto_rng = ["dep:blake3", "dep:chacha20", "dep:aes"]
custom_rng = ["crypto_rng", "fast_rng"]
default = ["std", "fast_rng"]
distributions = []
fast_rng = []
fork_safe = []
no_std = []
security = ["zeroize"]
serde = ["dep:serde", "dep:serde_json", "serde/derive"]
simd = []
std = []
thread_safe = ["std"]
wasm = ["wasm-bindgen"]
wasm_crypto = ["wasm", "dep:js-sys", "dep:web-sys"]

[lib]
name = "clock_rand"
path = "src/lib.rs"

[package]
authors = ["Olyntar Labs <labs@olyntar.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["algorithms", "cryptography", "no-std", "science"]
description = "Next-generation random number generation with blockchain-aware RNGs, fork detection, and cryptographic security"
documentation = "https://docs.rs/clock-rand"
edition = "2024"
keywords = ["rng", "random", "blockchain", "crypto", "cryptography"]
license = "MIT OR Apache-2.0"
name = "clock-rand"
readme = "README.md"
repository = "https://github.com/Olyntar-Labs/clock-rand"
version = "1.0.2"

[profile.dev]
debug = 2
opt-level = 0

[profile.release]
codegen-units = 1
lto = true
opt-level = 3

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
optional = true
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
features = ["Crypto", "Window", "console"]
optional = true
version = "0.3"

[[test]]
name = "determinism"
path = "tests/determinism.rs"

[[test]]
name = "fork_safety"
path = "tests/fork_safety.rs"

[[test]]
name = "property"
path = "tests/property.rs"

[[test]]
name = "statistical"
path = "tests/statistical.rs"