silverwolf-x's picture
download
raw
733 Bytes
import crypto from 'node:crypto'
import { SentinelValue } from '../../../getSentinelValue'
export default async function Page() {
const first = await getRandomValues(1)
const second = await getRandomValues(2)
return (
<div>
<dl>
<dt>[first] require('node:crypto').getRandomValues()</dt>
<dd id="first">{first.toString()}</dd>
<dt>[second] require('node:crypto').getRandomValues()</dt>
<dd id="second">{second.toString()}</dd>
</dl>
<span id="page">
<SentinelValue />
</span>
</div>
)
}
async function getRandomValues(_nonce: number) {
'use cache'
const randomBytes = new Uint8Array(8)
crypto.getRandomValues(randomBytes)
return randomBytes
}

Xet Storage Details

Size:
733 Bytes
·
Xet hash:
fed95793f0bfabd0044b523440eb674fc9b52417bfdceb88371a6230577f4917

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.