Urara-Blog/node_modules/.pnpm-store/v3/files/a9/6297735afac5e8389b23390ab7679ca9566cfedc8542b03984342de07ad50b07b4c33fd79aa8219226e562320cff87ba2a3556c6234e9fd514ed1dbb30b14a
2022-08-14 01:14:53 +08:00

14 lines
575 B
Text

randombytes
===
[![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)
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
});
```