aboutsummaryrefslogtreecommitdiff
path: root/node_modules/randomfill/README.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
commit0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch)
treef9864d4a4148621378958794cbbfdc2393733283 /node_modules/randomfill/README.md
parent6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff)
upgrade dependencies
Diffstat (limited to 'node_modules/randomfill/README.md')
-rw-r--r--node_modules/randomfill/README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/randomfill/README.md b/node_modules/randomfill/README.md
new file mode 100644
index 000000000..516ef581f
--- /dev/null
+++ b/node_modules/randomfill/README.md
@@ -0,0 +1,15 @@
+randomfill
+===
+
+[![Version](http://img.shields.io/npm/v/randombytes.svg)](https://www.npmjs.org/package/randombytes) [![Build Status](https://travis-ci.org/crypto-browserify/randombytes.svg?branch=master)](https://travis-ci.org/crypto-browserify/randombytes)
+
+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
+});
+```