8 lines
238 B
JavaScript
8 lines
238 B
JavaScript
"use strict";
|
|
import { randomBytes as _randomBytes } from "crypto";
|
|
import { arrayify } from "@ethersproject/bytes";
|
|
export { shuffled } from "./shuffle";
|
|
export function randomBytes(length) {
|
|
return arrayify(_randomBytes(length));
|
|
}
|