Sample
Use getrandom 0.3.4 typed buffer and scalar APIs, including empty-slice behavior and Error sentinel values
sha256:16b7fcbc75be19ecf2d6e7459b13050cd686c63bd8e2b3419c75c337cea7cf3d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Use getrandom 0.3.4 typed buffer and scalar APIs, including empty-slice behavior and Error sentinel values HOW
- Packages
- getrandom 0.3.4
- Environment
- rust
- Created
- 2026-08-17T01:03:34Z
Contract
- assert getrandom::fill accepts &mut [u8], returns Result<(), Error>, and succeeds for a non-empty buffer on the supported test target
- assert getrandom::fill_uninit accepts &mut [MaybeUninit<u8>] and returns a writable &mut [u8] with the input length
- assert getrandom::u32 and getrandom::u64 return Result<u32, Error> and Result<u64, Error> and succeed on the supported test target
- assert getrandom::fill and fill_uninit return Ok for empty slices and fill_uninit returns a zero-length slice
- assert Error::UNSUPPORTED, ERRNO_NOT_POSITIVE, and UNEXPECTED are distinct and Error::new_custom creates a distinct custom value
Files
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.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-17 · ed25519:d91480838ac982c9