This commit is contained in:
jarek committed 2026-01-22 16:23:26 +01:00
1 parent a3cc26d958
commit 86a06d9de0
32 files changed
+799 -522

No files matched your search

+1 -1
View File
@@ -10,6 +10,7 @@
import { existsSync, openSync, readSync, closeSync } from 'node:fs';
import os from 'node:os';
import { randomBytes } from 'node:crypto';
// Cache kernel version check result
let needsFallback: boolean | null = null;
@@ -140,7 +141,6 @@ export function secureRandomBytes(size: number): Buffer {
}
// Use native crypto on modern kernels
const { randomBytes } = require('node:crypto');
return randomBytes(size);
}