1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-02-21 02:56:40 -08:00
n8n/packages/workflow/test/setup.ts
कारतोफ्फेलस्क्रिप्ट™ 65c5609ab5
feat(core): Use WebCrypto to generate all random numbers and strings ()
2024-06-19 13:33:57 +02:00

8 lines
185 B
TypeScript

import { randomFillSync } from 'crypto';
Object.defineProperty(globalThis, 'crypto', {
value: {
getRandomValues: (buffer: NodeJS.ArrayBufferView) => randomFillSync(buffer),
},
});