From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/randomfill/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 node_modules/randomfill/README.md (limited to 'node_modules/randomfill/README.md') diff --git a/node_modules/randomfill/README.md b/node_modules/randomfill/README.md new file mode 100644 index 00000000..1ae13adf --- /dev/null +++ b/node_modules/randomfill/README.md @@ -0,0 +1,15 @@ +randomfill +=== + +[![Version](http://img.shields.io/npm/v/randomfill.svg)](https://www.npmjs.org/package/randomfill) + +randomfill 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 randomFill = require('randomfill'); +var buf +randomFill.randomFillSync(16);//get 16 random bytes +randomFill.randomFill(16, function (err, resp) { + // resp is 16 random bytes +}); +``` -- cgit v1.2.3