repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps): apply updates
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerUtils.ts
diff --git
a/src/worker/WorkerUtils.ts
b/src/worker/WorkerUtils.ts
index 1874767370a1a5d438993fd6ec2dba1b9f1318d1..776d7174c664f24a8d1e8bcb8ab59b5d3ee5706b 100644
(file)
--- a/
src/worker/WorkerUtils.ts
+++ b/
src/worker/WorkerUtils.ts
@@
-1,4
+1,4
@@
-import {
webcrypto
} from 'node:crypto';
+import {
getRandomValues
} from 'node:crypto';
import chalk from 'chalk';
import chalk from 'chalk';
@@
-34,5
+34,5
@@
export const randomizeDelay = (delay: number): number => {
* @internal
*/
const secureRandom = (): number => {
* @internal
*/
const secureRandom = (): number => {
- return
webcrypto.
getRandomValues(new Uint32Array(1))[0] / 0x100000000;
+ return getRandomValues(new Uint32Array(1))[0] / 0x100000000;
};
};