random-js
random-js copied to clipboard
Choose "best" engine automatically?
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()?
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?