mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
8 lines
185 B
TypeScript
8 lines
185 B
TypeScript
|
import { randomFillSync } from 'crypto';
|
||
|
|
||
|
Object.defineProperty(globalThis, 'crypto', {
|
||
|
value: {
|
||
|
getRandomValues: (buffer: NodeJS.ArrayBufferView) => randomFillSync(buffer),
|
||
|
},
|
||
|
});
|