Skip to content

Commit cd7c75a

Browse files
committed
Update random.js
1 parent 6cfbdd4 commit cd7c75a

File tree

1 file changed

+4
-0
lines changed
  • integration-tests/js-compute/fixtures/random

1 file changed

+4
-0
lines changed

integration-tests/js-compute/fixtures/random/random.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ function random3Decimals() {
55
let a = random3Decimals();
66
let b = random3Decimals();
77

8+
// This tests can fail sporadically as it is testing randomness.
9+
// If it fails, rerun the tests and it should pass, if it does not
10+
// then we may have another bug with how we are seeding the random
11+
// number generator in SpiderMonkey.
812
addEventListener("fetch", event => {
913
if (a === b) {
1014
return event.respondWith(new Response('The first 4 digits were repeated in sequential calls to Math.random() during wizening\n\n' + JSON.stringify({ a, b }, undefined, 4), { status: 500 }));

0 commit comments

Comments
 (0)