We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64dc77b + 46b1144 commit ac5dc85Copy full SHA for ac5dc85
tests/integration/bank.spec.ts
@@ -1,5 +1,5 @@
1
import * as dgraph from "../../src"
2
-
+import * as crypto from "crypto"
3
import { setSchema, setup, wait } from "../helper"
4
5
const concurrency = 5
@@ -79,8 +79,8 @@ async function runTxn(): Promise<void> {
79
let toUid: string
80
81
while (true) {
82
- fromUid = uids[Math.floor(Math.random() * uids.length)]
83
- toUid = uids[Math.floor(Math.random() * uids.length)]
+ fromUid = uids[crypto.randomInt(uids.length)]
+ toUid = uids[crypto.randomInt(uids.length)]
84
85
if (fromUid !== toUid) {
86
break
0 commit comments