Skip to content

Commit 1f99bb7

Browse files
authored
assert deterministic
1 parent 6112c84 commit 1f99bb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/rayon-monte-carlo.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ fn main() {
7171
})
7272
.sum::<usize>();
7373

74+
// assert this is deterministic
75+
assert_eq!(in_circle, 7852263);
76+
7477
// prints something close to 3.14159...
7578
println!(
7679
"π is approximately {}",

0 commit comments

Comments
 (0)