random-js icon indicating copy to clipboard operation
random-js copied to clipboard

Choose "best" engine automatically?

Open garyo opened this issue 5 years ago • 1 comments

I understand if you don't select an engine, it uses Math.random(). Would it be possible to have a mode that uses the best engine for the currently running environment instead, i.e. window.crypto in modern browsers, node.js crypto in node, or fall back to Math.random()?

garyo avatar Aug 20 '20 17:08 garyo

If there's a possibility of having the Mersenne Twister be a part of this, or any new engine that may get created for it, that would be great too @ckknight would this be a possibility in v3.0.0?

rawr51919 avatar Feb 04 '21 12:02 rawr51919