2
0
mirror of synced 2025-02-24 20:18:07 +00:00
2019-05-14 18:25:46 -04:00

13 lines
263 B
TypeScript

"use strict";
import { randomBytes as _randomBytes } from "crypto";
import { arrayify } from "@ethersproject/bytes";
export { shuffled } from "./shuffle";
export function randomBytes(length: number): Uint8Array {
return arrayify(_randomBytes(length));
}