From d15539ca7170a48705eebb87b91e5b3136e67278 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 01:38:44 +0000 Subject: [PATCH] Fix crypto.randomBytes() usage in hash.js - replace with crypto.randomInt() Co-authored-by: KingIronMan2011 <176780813+KingIronMan2011@users.noreply.github.com> --- server/modules/axios-ntlm/lib/hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/axios-ntlm/lib/hash.js b/server/modules/axios-ntlm/lib/hash.js index 4085e92ed..d55a33489 100644 --- a/server/modules/axios-ntlm/lib/hash.js +++ b/server/modules/axios-ntlm/lib/hash.js @@ -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; }