10 lines
204 B
JavaScript
10 lines
204 B
JavaScript
var crypto = require('crypto');
|
|
|
|
var SecureRandom = require('./common/SecureRandom');
|
|
|
|
SecureRandom.getRandomBuffer = function(size) {
|
|
return crypto.randomBytes(size);
|
|
}
|
|
|
|
module.exports = SecureRandom;
|