contracts.random_source_unavailable
failureThis is a failure. A function returns it as a value, so your code keeps running and you decide what to do.
What happened
Secure ID generation has no usable Web Crypto provider.
Fix
Provide Web Crypto getRandomValues, or randomUUID for UUID declarations; application-owned secure providers must fail closed in every supported mode.
Check the fix
bun run test -- src/ids.test.tsRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/contracts
- Version
- 0.3.0 · next release candidate
- Source
- src/errors.ts:139