You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage of Math.random should be banned because cannot be deterministic.
And in cases when using a faker funtion in a test, it will allways fail, because everytime returns nondeterministic random data.
A random method already exists in the source code that allow also to set a seed for pseudo random generator.
To replace every instance of Math.random with random from random.ts
+import { random } from './random.ts-Math.random()+random()
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
No response
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered:
Is this a regression?
Yes
Description
Usage of
Math.random
should be banned because cannot be deterministic.And in cases when using a faker funtion in a test, it will allways fail, because everytime returns nondeterministic random data.
A
random
method already exists in the source code that allow also to set aseed
for pseudo random generator.To replace every instance of
Math.random
withrandom
fromrandom.ts
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
No response
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: