random-byte.js 179 Bytes edit raw blame history 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;