b09876a829e6bd9b20729196ee8e3ed8ac654ca8c7c1029838b910564783a7c26c41e521455fd95516b4d02270200bf6de8f2961d33d4a077b60a811cb869b 459 B

123456789101112131415
  1. randomfill
  2. ===
  3. [![Version](http://img.shields.io/npm/v/randomfill.svg)](https://www.npmjs.org/package/randomfill)
  4. randomfill from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues
  5. ```js
  6. var randomFill = require('randomfill');
  7. var buf
  8. randomFill.randomFillSync(16);//get 16 random bytes
  9. randomFill.randomFill(16, function (err, resp) {
  10. // resp is 16 random bytes
  11. });
  12. ```