Beispiel
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
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.5
- Umgebung
- rust 1
- Erstellt
- 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
Dateien
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243