remove accidental use of node crypto

This commit is contained in:
AJ ONeal 2019-10-06 02:14:48 -06:00
부모 499ac7f8ea
커밋 96b491a9c0
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@ -988,9 +988,14 @@ ACME._getCertificate = function(me, options) {
// a little bit of random to ensure that getZones()
// actually returns the zones and not the hosts as zones
var dnsHosts = options.domains.map(function(d) {
var rnd = require('crypto')
.randomBytes(2)
.toString('hex');
var rnd = parseInt(
Math.random()
.toString()
.slice(2),
10
)
.toString(16)
.slice(0, 4);
return rnd + '.' + d;
});
promiseZones = ACME._getZones(