davidbau / seedrandom

seeded random number generator for Javascript
2.04k stars 160 forks source link

Clean up #16

Closed TimothyGu closed 9 years ago

TimothyGu commented 9 years ago

Fixes #15.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.18%) to 95.89% when pulling 87a4908b0d7d6eab7c6db399ad7fd404f971b3df on TimothyGu:master into 3dc8807af57caf380d4c40a6356cc41ad53fdcdc on davidbau:master.

davidbau commented 9 years ago

How does the size of seedrandom.min.js compare after the cleanup?

TimothyGu commented 9 years ago

@davidbau said:

How does the size of seedrandom.min.js compare after the cleanup?

Original: 1488 bytes.

New: 1493 bytes.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.18%) to 95.89% when pulling 6bfc8dadb896b539a47d7d7c401aa1e13260a060 on TimothyGu:master into 3dc8807af57caf380d4c40a6356cc41ad53fdcdc on davidbau:master.

davidbau commented 9 years ago

Ping. When you get a chance, move the require('crypto') back into the if to avoid the caught exception in the browser.