2014-05-06 23:14:10 -07:00
|
|
|
var imports = require('soop');
|
|
|
|
var crypto = imports.crypto || require('crypto');
|
|
|
|
|
|
|
|
var SecureRandom = require('./common/SecureRandom');
|
|
|
|
|
|
|
|
SecureRandom.getRandomBuffer = function(size) {
|
|
|
|
return crypto.randomBytes(size);
|
2014-04-22 18:18:59 -07:00
|
|
|
}
|
2014-05-06 23:14:10 -07:00
|
|
|
|
|
|
|
module.exports = require('soop')(SecureRandom);
|