mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-08-31 02:01:11 +00:00
Fix crypto.randomBytes() usage in hash.js - replace with crypto.randomInt()
Co-authored-by: KingIronMan2011 <176780813+KingIronMan2011@users.noreply.github.com>
This commit is contained in:
@@ -106,7 +106,7 @@ function createNTLMv2Response(type2message, username, ntlmhash, nonce, targetNam
|
||||
function createPseudoRandomValue(length) {
|
||||
var str = '';
|
||||
while (str.length < length) {
|
||||
str += Math.floor(crypto.randomBytes() * 16).toString(16);
|
||||
str += crypto.randomInt(16).toString(16);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user