Skip to content

Commit afd8ec3

Browse files
committed
perf: cleanup node:crypto usage
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
1 parent 1815350 commit afd8ec3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pools/abstract-pool.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { randomUUID } from 'node:crypto'
21
import { performance } from 'node:perf_hooks'
32
import { EventEmitter } from 'node:events'
43
import type {
@@ -926,7 +925,7 @@ export abstract class AbstractPool<
926925
data: data ?? ({} as Data),
927926
transferList,
928927
timestamp,
929-
taskId: randomUUID(),
928+
taskId: crypto.randomUUID(),
930929
}
931930
this.promiseResponseMap.set(task.taskId as string, {
932931
resolve,

0 commit comments

Comments
 (0)