|
|
||||
|---|---|---|---|---|
| .. | ||||
| .travis.yml | 11e3a9652a | 7 anos atrás | ||
| .zuul.yml | 11e3a9652a | 7 anos atrás | ||
| LICENSE | 11e3a9652a | 7 anos atrás | ||
| README.md | 11e3a9652a | 7 anos atrás | ||
| browser.js | 11e3a9652a | 7 anos atrás | ||
| index.js | 11e3a9652a | 7 anos atrás | ||
| package.json | 11e3a9652a | 7 anos atrás | ||
| test.js | 11e3a9652a | 7 anos atrás | ||
randomfill from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues
var randomFill = require('randomfill');
var buf
randomFill.randomFillSync(16);//get 16 random bytes
randomFill.randomFill(16, function (err, resp) {
// resp is 16 random bytes
});