From 28143d74afe80eb4863df66c83b5e9bfeabfe004 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 13:52:06 +0000 Subject: [PATCH] Increase entropy in SHAMapStoreImp.cpp unique path generation Agent-Logs-Url: https://github.com/XRPLF/rippled/sessions/ec2fa57d-2d9c-4388-b4e1-90a40f55b5e8 Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com> --- src/xrpld/app/misc/SHAMapStoreImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrpld/app/misc/SHAMapStoreImp.cpp b/src/xrpld/app/misc/SHAMapStoreImp.cpp index 74a475d92e..7b3a481f99 100644 --- a/src/xrpld/app/misc/SHAMapStoreImp.cpp +++ b/src/xrpld/app/misc/SHAMapStoreImp.cpp @@ -475,7 +475,7 @@ SHAMapStoreImp::makeBackendRotating(std::string path) std::filesystem::path const p = get(section, "path"); std::random_device rd; std::ostringstream oss; - oss << std::hex << std::setfill('0') << std::setw(8) << rd(); + oss << std::hex << std::setfill('0') << std::setw(8) << rd() << std::setw(8) << rd(); newPath = (p / dbPrefix_).string() + "." + oss.str(); } section.set("path", newPath.string());