IntelligenceComponentscrates.io
rand
Random number generation library whose default generator, rand::rng(), is automatically seeded from the operating system and intended for unpredictable output.
In short
What to know.
- Algorithms
- Cryptographically strong random number generationNone would be broken by a large quantum computer.
- Advisories
- 2 in the storeOSV last read 3 December 2026, 16:52 UTC.
- What to do
- Check your version against the advisories below. Each lists its affected and fixed versions.
2 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| Rand is unsound with a custom logger using rand::rng() | GHSA-cq8v-f236-94qc | from 0.9.0 before 0.9.3; from 0.10.0 before 0.10.1; listed versions 0.10.0; from 0.7.0 before 0.8.6 | Fixed in 0.9.3, 0.10.1, 0.8.6 | Rated Low |
| Rand is unsound with a custom logger using `rand::rng()` | RUSTSEC-2026-0097 | from 0.10.0 before 0.10.1 | Fixed in 0.10.1 |
1 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| Rand is unsound with a custom logger using `rand::rng()` | NMN-2026-0176 | 3 December 2026 |
Reviewed 3 December 2026
Sources
- crates.io metadata for randcrates.ioRetrieved 3 December 2026
- rand 0.10.4 README on crates.iocrates.ioRetrieved 3 December 2026
- rand documentationdocs.rsRetrieved 3 December 2026
Full record
- Package
- rand
- Ecosystem
- crates.io
- Role
- Implementation
- Repository
- github.com/rust-random/rand
- Status
- Not marked deprecated by its registry or maintainers.
- Notes
- Also contains non-cryptographic generators; the README asks users to judge whether its generators meet their security requirements.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:52 UTC
- Findings
- 1 listed above.
Algorithms it provides
- Cryptographically strong random number generation rngOtherNot applicable
What a large quantum computer would change
- Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation
Notes describe algorithm families, not any one project.