build(deps): apply updates
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerUtils.ts
index 1874767370a1a5d438993fd6ec2dba1b9f1318d1..776d7174c664f24a8d1e8bcb8ab59b5d3ee5706b 100644 (file)
@@ -1,4 +1,4 @@
-import { webcrypto } from 'node:crypto';
+import { getRandomValues } from 'node:crypto';
 
 import chalk from 'chalk';
 
@@ -34,5 +34,5 @@ export const randomizeDelay = (delay: number): number => {
  * @internal
  */
 const secureRandom = (): number => {
-  return webcrypto.getRandomValues(new Uint32Array(1))[0] / 0x100000000;
+  return getRandomValues(new Uint32Array(1))[0] / 0x100000000;
 };