mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
11 lines
179 B
JavaScript
11 lines
179 B
JavaScript
'use strict';
|
|
|
|
var crypto = require('crypto');
|
|
var randomBytes = crypto.randomBytes;
|
|
|
|
function randomByte() {
|
|
return randomBytes(1)[0] & 0x30;
|
|
}
|
|
|
|
module.exports = randomByte;
|