Skip to content

Commit 9706668

Browse files
committed
[benchmark] RandomIntegersLCG futureproofed
Allow for future change in algorithm that generates random integers in range.
1 parent 8f54aa6 commit 9706668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/single-source/RandomValues.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public func run_RandomIntegersLCG(_ N: Int) {
6363
for _ in 0 ..< 100_000 {
6464
x &+= Int64.random(in: 0...10_000, using: &generator)
6565
}
66-
CheckResults(x == 498214315)
66+
blackHole(x)
6767
}
6868
}
6969

0 commit comments

Comments
 (0)