Initial commit
This commit is contained in:
7
benchmarks/rng.ts
Normal file
7
benchmarks/rng.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import crypto from 'crypto';
|
||||
import { Bytes } from '../src/crypto/bytes.js';
|
||||
|
||||
const rng = crypto.getRandomValues(new Uint8Array(2048));
|
||||
const bytes = Bytes.from(rng);
|
||||
|
||||
console.log(bytes.toBase64());
|
||||
Reference in New Issue
Block a user