Ejemplo
Generate deterministic and custom-entropy identifiers using nanoid customRandom and random byte generator
sha256:e8d4dcdd4cc51c25ef07e9fc78c54cdb1bf4b593d8b7d49f0ca8d5ea7c0a130c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- node
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- node
- Lenguaje
- node
- Gestor de paquetes
- npm
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- node 22
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- node 22
- Lenguaje
- javascript
- Gestor de paquetes
- npm
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- Generate deterministic and custom-entropy identifiers using nanoid customRandom and random byte generator HOW
- Paquetes
-
nanoid 6.0.1
- Entorno
- node
- Creado
- 2026-08-17T17:45:32Z
Contrato
- 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
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9