From c9f9fa66bb7ee2e97445e3efbd893e7434aa08d5 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 12 Jul 2024 17:38:59 +0100 Subject: [PATCH] JAL-3631 shorter digest string for the unique user app dir --- .../core/src/main/java/com/threerings/getdown/data/EnvConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java index 8c73262..a43b1dd 100644 --- a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java +++ b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java @@ -348,7 +348,8 @@ public final class EnvConfig { public static final String getFullPathToDirectoryHash(String install_app_dir) { - MessageDigest md = Digest.getMessageDigest(Digest.VERSION); + //sha1 is good enough we hope - paths are short + MessageDigest md = Digest.getMessageDigest(1); byte[] contents = install_app_dir.getBytes(UTF_8); String hash = StringUtil.hexlate(md.digest(contents)); return hash; -- 1.7.10.2