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:
copilot-swe-agent[bot] 2025-12-29 01:38:44 +00:00
parent 1362286dac
commit d15539ca71

View File

@ -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;
}