cefa50d301bd823447c663bbb64795baeb1f0e92b2059fea6faa767130de31e49fed397de9a0e6ba3661ac70914619978d92aa90070e8241d47c3ce67e6487 222 B

12345678910111213
  1. var crypto = require('crypto')
  2. var max = Math.pow(2, 32)
  3. module.exports = random
  4. module.exports.cryptographic = true
  5. function random () {
  6. var buf = crypto
  7. .randomBytes(4)
  8. .readUInt32BE(0)
  9. return buf / max
  10. }