Files
raspberryGPIOhtmlserver/node_modules/shortid/lib/random/random-byte.js
2016-06-21 18:42:57 +02:00

11 lines
179 B
JavaScript
Executable File

'use strict';
var crypto = require('crypto');
var randomBytes = crypto.randomBytes;
function randomByte() {
return randomBytes(1)[0] & 0x30;
}
module.exports = randomByte;