9 lines
152 B
JavaScript
9 lines
152 B
JavaScript
'use strict';
|
|
|
|
var randomBytes = require('crypto').randomBytes;
|
|
|
|
module.exports = function(length) {
|
|
return new Uint8Array(randomBytes(length));
|
|
}
|
|
|