source: trip-planner-front/node_modules/randombytes/README.md@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 575 bytes
Line 
1randombytes
2===
3
4[![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)
5
6randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues
7
8```js
9var randomBytes = require('randombytes');
10randomBytes(16);//get 16 random bytes
11randomBytes(16, function (err, resp) {
12 // resp is 16 random bytes
13});
14```
Note: See TracBrowser for help on using the repository browser.