import crypto from "crypto"; import * as core from "webcrypto-core"; import { SubtleCrypto } from "./subtle"; export class Crypto extends core.Crypto { public subtle = new SubtleCrypto(); public getRandomValues(array: T): T { const buffer = Buffer.from(array.buffer); crypto.randomFillSync(buffer); return array; } }