import { randomBytes } from "crypto" ; import { RandomHelper } from "./utils/randomHelper" ; if ( ! RandomHelper . randomPolyfill ) { RandomHelper . randomPolyfill = length => randomBytes ( length ) as Uint8Array ; }