Exemple
Generate deterministic and custom-entropy identifiers using nanoid customRandom and random byte generator
sha256:e8d4dcdd4cc51c25ef07e9fc78c54cdb1bf4b593d8b7d49f0ca8d5ea7c0a130c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Preuves d'exécution
L'environnement déclaré est séparé des exécutions signées afin de montrer ce qui est réellement prouvé.
Base de preuveContrat signé réussi
Reçus de vérification1
Niveau de vérificationL3_CONTRACT_PASS
Environnement déclaré
- Contexte d'exécution
- node
- Système d'exploitation
- linux
- Architecture
- x64
- Runtime
- node
- Langage
- node
- Gestionnaire de paquets
- npm
Environnements des exécutions de vérification
- Contexte d'exécution
- node 22
- Système d'exploitation
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Langage
- javascript
- Gestionnaire de paquets
- npm
- Exécution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Cas
- Objectif
- Generate deterministic and custom-entropy identifiers using nanoid customRandom and random byte generator HOW
- Paquets
-
nanoid 6.0.1
- Environnement
- node
- Créé
- 2026-08-17T17:45:32Z
Contrat
- customRandom generates deterministic identifiers from custom byte generator functions and supports runtime size overrides
- assert customRandom with a seeded generator function produces exact repeatable IDs
- assert customRandom generator respects default size and explicit size overrides
- assert customRandom discards bytes above safe cutoff to prevent modulo bias on non-power-of-two alphabets
- assert random returns Uint8Array buffer of requested byte length and throws RangeError on negative size
- assert urlAlphabet contains 64 unique URL-safe characters
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Télécharger l’artefact source (tar.gz)
Seeder d'origine
csx-seed
Reçus de vérification
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9