2018-06-13 22:39:39 +03:00
|
|
|
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
var convert_1 = require("./convert");
|
2018-06-15 11:18:17 +03:00
|
|
|
var crypto_1 = require("crypto");
|
2018-06-17 23:32:57 +03:00
|
|
|
//function _randomBytes(length) { return "0x00"; }
|
2018-06-13 22:39:39 +03:00
|
|
|
function randomBytes(length) {
|
2018-06-15 11:18:17 +03:00
|
|
|
return convert_1.arrayify(crypto_1.randomBytes(length));
|
2018-06-13 22:39:39 +03:00
|
|
|
}
|
|
|
|
exports.randomBytes = randomBytes;
|