caoge c760052ff9 机车状态修改 | 8 mesi fa | |
---|---|---|
.. | ||
.travis.yml | 8 mesi fa | |
.zuul.yml | 8 mesi fa | |
LICENSE | 8 mesi fa | |
README.md | 8 mesi fa | |
browser.js | 8 mesi fa | |
index.js | 8 mesi fa | |
package.json | 8 mesi fa | |
test.js | 8 mesi fa |
randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues
var randomBytes = require('randombytes');
randomBytes(16);//get 16 random bytes
randomBytes(16, function (err, resp) {
// resp is 16 random bytes
});