Skip to content

Commit 365231d

Browse files
committed
Use Lib.psuedoRandom(), not Math.random()
1 parent 69345fc commit 365231d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/jasmine/tests/axes_test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8229,7 +8229,8 @@ fdescribe('test tickmode calculator', function() {
82298229
standardConfig = {tickmode: 'array', ticks: 'inside', ticklen: 1, showticklabels: false};
82308230

82318231
// Number of ticks will be random
8232-
var n = Math.floor(Math.random() * 99) + 1;
8232+
Lib.seedPseudoRandom();
8233+
var n = (Lib.pseudoRandom() * 99) + 1;
82338234
tickVals = [];
82348235
for(let i = 0; i <= n; i++) {
82358236
tickVals.push(i);

0 commit comments

Comments
 (0)