Sha256: a8db359ae99bc329a682180c691f52866376bdf5ce3fb41304a7615ad1543e33
Contents?: true
Size: 236 Bytes
Versions: 12
Compression:
Stored size: 236 Bytes
Contents
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 }
Version data entries
12 entries across 12 versions & 4 rubygems