Your IP : 216.73.216.48


Current Path : /hdd/hdd21/my5/git/node_modules/math-random/
Upload File :
Current File : //hdd/hdd21/my5/git/node_modules/math-random/node.js

var crypto = require('crypto')
var max = Math.pow(2, 32)

module.exports = random
module.exports.cryptographic = true

function random () {
  var buf = crypto
    .randomBytes(4)
    .toString('hex')

  return parseInt(buf, 16) / max
}