Blame view
node_modules/shortid/lib/random/random-byte.js
179 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 |
'use strict'; var crypto = require('crypto'); var randomBytes = crypto.randomBytes; function randomByte() { return randomBytes(1)[0] & 0x30; } module.exports = randomByte; |