Sample
Update rand 0.8 code to 0.9 after thread_rng, gen and gen_range were renamed, and keep tests reproducible
sha256:204201945397c3c2ca2492fa4d92d817a8e64db3d76d19aee7b26cc865ab2b62
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Update rand 0.8 code to 0.9 after thread_rng, gen and gen_range were renamed, and keep tests reproducible MIGRATION
- Packages
- rand 0.9.5
- Environment
- rust 1
- Created
- 2026-08-14T19:28:24Z
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
Files
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243