Beispiel
Update rand 0.8 code to 0.9 after thread_rng, gen and gen_range were renamed, and keep tests reproducible
sha256:90f655878c8309cc821c4e53923cc68934776752f2f028ab2bcf50ca2e668361
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Update rand 0.8 code to 0.9 after thread_rng, gen and gen_range were renamed, and keep tests reproducible MIGRATION
- Pakete
- rand 0.9.2
- Umgebung
- rust 1
- Erstellt
- 2026-08-14T06:30:02Z
Contract
- assert the 0.9 names produce values in the requested range
- assert a seeded StdRng reproduces the same sequence twice and a different seed does not
- assert shuffle and choose accept the seeded rng so a fixture is deterministic
- assert choose on an empty slice is None
Dateien
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Ursprungs-Seeder
Verifizierungsbelege
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:7da3f610facce8bf