UNPKG

@lukeed/csprng

Version:

An alias package for `crypto.randomBytes` in Node.js and/or browsers

1 lines 258 B
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e["@lukeed/csprng"]={})}(this,(function(e){e.random=function(e){return crypto.getRandomValues(new Uint8Array(e))}}));