Buckets:
silverwolf-x/project / test /e2e /app-dir /cache-components /app /node-crypto /random-fill-sync /cached /page.tsx
| import crypto from 'node:crypto' | |
| import { SentinelValue } from '../../../getSentinelValue' | |
| export default async function Page() { | |
| const first = await getFilledSync(1) | |
| const second = await getFilledSync(2) | |
| return ( | |
| <div> | |
| <dl> | |
| <dt>[first] require('node:crypto').randomFillSync(buffer)</dt> | |
| <dd id="first">{first.toString()}</dd> | |
| <dt>[second] require('node:crypto').randomBytes(buffer)</dt> | |
| <dd id="second">{second.toString()}</dd> | |
| </dl> | |
| <span id="page"> | |
| <SentinelValue /> | |
| </span> | |
| </div> | |
| ) | |
| } | |
| async function getFilledSync(_nonce: number) { | |
| 'use cache' | |
| const randomBytes = new Uint8Array(16) | |
| crypto.randomFillSync(randomBytes, 4, 8) | |
| return randomBytes | |
| } | |
Xet Storage Details
- Size:
- 740 Bytes
- Xet hash:
- d70f5448d7f8c2a23e06e4fe4b779fe09830bd93cc9c1990c00595699dfc9cc0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.