Skip to content

tmcw-up-for-adoption/node-fixedentropy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-fixedentropy

// V8 supports custom sources of entropy.
// by default, entropy is fairly entropic; in node.js, it's sourced
// from some primo OpenSSL functions

Math.random(); // 0.6986953148152679
Math.random(); // 0.700820395257324
Math.random(); // 0.2057398131582886

// Looking good.

// But, of course, node supports C++ modules, and V8 supports
// runtime entropy configuration, so

require('fixedentropy');

Math.random(); // 0.06971457065083086
Math.random(); // 0.06971457065083086
Math.random(); // 0.06971457065083086

About

fixes the v8 entropy generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published