Skip to content

Quantum random number generator module for Node.js. Based on the ANU Quantum Random Number Generator https://photonics.anu.edu.au/qoptics/Research/qrng.php

Notifications You must be signed in to change notification settings

cbumgard/node-qrand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-qrand

A quantum random number generator for node.js.

Gets N-length random numbers from the ANU Quantum Random Number Generator See here for more info: https://photonics.anu.edu.au/qoptics/Research/qrng.php

Installation (Global)

npm install -g qrand

Then try it out by running:

qrand -l 16

Which should output something 32 random hex characters (16 octets):

028251ba71420a4b8b0a343333b7445a

Using as a Library

Add to your project's package.json dependency array:

"dependencies": {
  "qrand": "0.1.x"
}

Then run npm install

From your project you can now use this library as follows:

var qrand = require('qrand');
qrand.getRandomHexOctets(16, function(err, octets) {
  console.log(octets.join(''));
});

About

Quantum random number generator module for Node.js. Based on the ANU Quantum Random Number Generator https://photonics.anu.edu.au/qoptics/Research/qrng.php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published