Skip to content

Commit ac5dc85

Browse files
committed
Merge branch 'ryan/cleanup' of https://github.com/hypermodeinc/dgraph-js into ryan/cleanup
2 parents 64dc77b + 46b1144 commit ac5dc85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/bank.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as dgraph from "../../src"
2-
2+
import * as crypto from "crypto"
33
import { setSchema, setup, wait } from "../helper"
44

55
const concurrency = 5
@@ -79,8 +79,8 @@ async function runTxn(): Promise<void> {
7979
let toUid: string
8080

8181
while (true) {
82-
fromUid = uids[Math.floor(Math.random() * uids.length)]
83-
toUid = uids[Math.floor(Math.random() * uids.length)]
82+
fromUid = uids[crypto.randomInt(uids.length)]
83+
toUid = uids[crypto.randomInt(uids.length)]
8484

8585
if (fromUid !== toUid) {
8686
break

0 commit comments

Comments
 (0)