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
This constant is defined as "the maximum number of bits after the radix-point, that Math.random could return". The use-case is to predict how much "entropy-per-call" can be extracted from Math.random. This is especially useful when multiplying the returned number by something close to Number.MAX_SAFE_INTEGER, as it can be used to predict how much bias there will be.
Its value is expected to be either 52 or 53, as 52 is the mantissa-size, and 53 includes the implicit-bit. The value is implementation-dependent, and this is the main reason why this "constant" should exist, to prevent code from guessing entropy in unreliable ways
The text was updated successfully, but these errors were encountered:
This constant is defined as "the maximum number of bits after the radix-point, that
Math.random
could return". The use-case is to predict how much "entropy-per-call" can be extracted fromMath.random
. This is especially useful when multiplying the returned number by something close toNumber.MAX_SAFE_INTEGER
, as it can be used to predict how much bias there will be.Its value is expected to be either
52
or53
, as 52 is the mantissa-size, and 53 includes the implicit-bit. The value is implementation-dependent, and this is the main reason why this "constant" should exist, to prevent code from guessing entropy in unreliable waysThe text was updated successfully, but these errors were encountered: