Hi @davidbau, thanks for your work on this package. We'd like to replace our home-grown pseudo-random number generator with your package, but ran into an issue with the use of eval (prior art: issue #46). Allowing eval() is unsafe and for servers that set strict Content Security Policies for scripts, code with eval will not be permitted to run.
Hi @davidbau, thanks for your work on this package. We'd like to replace our home-grown pseudo-random number generator with your package, but ran into an issue with the use of
eval
(prior art: issue #46). Allowingeval()
is unsafe and for servers that set strict Content Security Policies for scripts, code witheval
will not be permitted to run.The Universal Module Definition uses
self
to reach the global context in regardless of strict mode in browsers, andthis
otherwise (for Node). (https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js#L32)For example:
Would you consider replacing the
eval
code so that we can use your package in environments whereeval
is disallowed?Thanks!