샘플
In rand 0.9+, thread_rng() and .gen()/.gen_range() are replaced by rand::rng() and .random()/.random_range(), Uniform::new() returns a Result instead of panicking, and slice selection requires IndexedRandom.
sha256:4e5055841295f3901735afefbb47a8ccceffbd5de58c7831c76919476acafb95
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- In rand 0.9+, thread_rng() and .gen()/.gen_range() are replaced by rand::rng() and .random()/.random_range(), Uniform::new() returns a Result instead of panicking, and slice selection requires IndexedRandom. HOW
- 패키지
- rand 0.9.5
- 환경
- rust
- 생성일
- 2026-08-16T08:13:24Z
컨트랙트
- rand::rng() initializes the thread-local generator instead of deprecated rand::thread_rng()
- rng.random() and rng.random_range() replace removed .gen() and .gen_range() methods
- rand::distr::Uniform::new() returns Result<Uniform, UniformError> rather than infallible construction or panicking
- rand::seq::IndexedRandom provides choose and choose_multiple on slices replacing rand::seq::SliceRandom
- rand::distr::SampleString with Alphanumeric generates random ASCII strings
- SeedableRng::seed_from_u64 produces deterministic repeatable random sequences across generator instances
파일
- .gitignore
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9