.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / math-random / node.js
1 var crypto = require('crypto')
2 var max = Math.pow(2, 32)
3
4 module.exports = random
5 module.exports.cryptographic = true
6
7 function random () {
8   var buf = crypto
9     .randomBytes(4)
10     .readUInt32BE(0)
11
12   return buf / max
13 }