![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | LICENSE | a year ago | 1.0K | |
![]() | README.md | a year ago | 575 | 595aea1 more query options + view options [كارل مبارك] |
![]() | browser.js | a year ago | 1.5K | |
![]() | index.js | a year ago | 47 | |
![]() | package.json | a year ago | 869 | afd0ccc remove unused [كارل مبارك] |
![]() | test.js | a year ago | 1.8K |
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
});