randombytes === [](https://www.npmjs.org/package/randombytes) [](https://travis-ci.org/crypto-browserify/randombytes) randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues ```js var randomBytes = require('randombytes'); randomBytes(16);//get 16 random bytes randomBytes(16, function (err, resp) { // resp is 16 random bytes }); ```
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.travis.yml | File | 319 B | 0644 |
|
.zuul.yml | File | 9 B | 0644 |
|
LICENSE | File | 1.05 KB | 0644 |
|
README.md | File | 575 B | 0644 |
|
browser.js | File | 1.54 KB | 0644 |
|
index.js | File | 47 B | 0644 |
|
package.json | File | 869 B | 0644 |
|
test.js | File | 1.85 KB | 0644 |
|