샘플
Handle weighted sampling when non-zero weights are fewer than requested amount following rand 0.9.1 patch fix
sha256:2bcf67d4097a07cb82164327f2661ebdd23738e53365d14e231857269fda1d84
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Handle weighted sampling when non-zero weights are fewer than requested amount following rand 0.9.1 patch fix HOW
- 패키지
- rand 0.9.1
- 환경
- rust
- 생성일
- 2026-08-17T02:34:40Z
컨트랙트
- assert choose_multiple_weighted on all zero weights returns Ok with empty slice instead of InsufficientNonZero error
- assert choose_multiple_weighted returns Ok with all available non-zero items when requested amount exceeds positive weights
- assert index sample_weighted returns Ok with all available positive-weight indices when requested amount exceeds non-zero weights
- assert negative weights still return Err(WeightError::InvalidWeight)
파일
- .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-17 · ed25519:d91480838ac982c9