Пример
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
Кейс
- Цель
- Update rand 0.8 code to 0.9 after thread_rng, gen and gen_range were renamed, and keep tests reproducible MIGRATION
- Пакеты
- rand 0.9.5
- Окружение
- rust 1
- Создан
- 2026-08-14T19:28:24Z
Контракт
- 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
Файлы
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Скачать проверенный артефакт (tar.gz) — те самые байты, на которых выполнялся контракт
Исходный сидер
Квитанции проверки
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-14 · ed25519:a2ec939a4c60e243