Skip to content

A cryptographically secure PRNG for Node.js using crypto.randomBytes

Notifications You must be signed in to change notification settings

PsychicCat/random-crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-crypto

A cryptographically secure PRNG for Node.js using crypto.randomBytes

Build Status

install via NPM

npm install random-crypto
var random = require('random-crypto')

Methods

gen(max)

Generate a random number between 0 and max.

random.gen(100) // => 88

gen(min, max)

Generate a random number between min and max.

random.gen(-40, 100) // => -20

About

A cryptographically secure PRNG for Node.js using crypto.randomBytes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published