Giter VIP home page Giter VIP logo

node-mersenne's Introduction

node-mersenne

Great random number generation for nodejs!

Change log:

  • 0.0.4 -- clarify license (BSD)

  • 0.0.3 -- fix variable scoping to avoid globals

  • 0.0.1 -- initial release

node-mersenne's People

Contributors

jwatte avatar patricklodder avatar

Stargazers

Anthony Jia Sides  avatar Ariana triani from canada avatar  avatar Rex Sheng avatar geo8bit avatar Eric Lee avatar Dumitru Glavan avatar  avatar  avatar Sascha avatar  avatar Michael Bradley avatar

Watchers

Rex Sheng avatar  avatar  avatar James Cloos avatar  avatar

node-mersenne's Issues

Update npm package

Would be nice if you could update the npm package!

Thank you for your time.

Best Regards
Philipp

default random seed not random enough in parallel execution

Is the below snippet the default random seed?

gen.init_genrand((new Date).getTime() % 1000000000);

If it is it could be unexpected behavior. Because when executed in parallel the chances of matching initial seeds increases like it did in my app where I executed code in parallel.

My issues were gone when I manually set the seeds with a combination of both a date timestamp and Math.random()

I think the principle of least astonishment here would to make the initial seed collision less likely when running code in parallel such as running selenium browser tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.