mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-26 06:14:06 -06:00
8 lines
208 B
TypeScript
8 lines
208 B
TypeScript
import { randomBytes as _randomBytes } from "crypto";
|
|
|
|
import { arrayify } from "@ethersproject/bytes";
|
|
|
|
export function randomBytes(length: number): Uint8Array {
|
|
return arrayify(_randomBytes(length));
|
|
}
|