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:
parent
1362286dac
commit
d15539ca71
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user