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
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Herman Venter edited this page Apr 10, 2018
·
2 revisions
Result of Math.random() is made deterministic via a fixed mathRandomSeed
When the option --mathRandomSeed is given to prepack, then all calls to Math.random() get evaluated based on the random seed supplied via the option. This causes Prepack to replace the call with the result of the call, which is a compile time constant, which may be unexpected.
This informational message provides details about where such calls to Math.random() happen. It is suggested that these calls be reviewed to ensure that they may be replaced with constants.