mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat(core): Use WebCrypto to generate all random numbers and strings (#9786)
This commit is contained in:
committed by
GitHub
parent
cfc4db00e3
commit
65c5609ab5
7
packages/workflow/test/setup.ts
Normal file
7
packages/workflow/test/setup.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { randomFillSync } from 'crypto';
|
||||
|
||||
Object.defineProperty(globalThis, 'crypto', {
|
||||
value: {
|
||||
getRandomValues: (buffer: NodeJS.ArrayBufferView) => randomFillSync(buffer),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user