summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-16 02:50:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-16 02:50:13 -0400
commit137257ded1acb1b15c0413a8998af1e999cd1a53 (patch)
tree145f8d64a3aad7746cbf63b9b3f8292a568b0459
parent500c4e44c560a04aaa30e165b70d4d8491ad9c32 (diff)
better letter choice for hashing
-rw-r--r--Locations.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Locations.hs b/Locations.hs
index b2d31a1bf..3cce4c261 100644
--- a/Locations.hs
+++ b/Locations.hs
@@ -162,8 +162,8 @@ display_32bits_as_dir :: Word32 -> String
display_32bits_as_dir w = trim $ swap_pairs cs
where
-- Need 32 characters to use. To avoid inaverdently making
- -- a real word, use the alphabet without vowels.
- chars = ['0'..'9'] ++ "bcdfghjklnmpqrstvwxyzZ"
+ -- a real word, use letters that appear less frequently.
+ chars = ['0'..'9'] ++ "zqjxkmvwgpfZQJXKMVWGPF"
cs = map (\x -> getc $ (shiftR w (6*x)) .&. 31) [0..7]
getc n = chars !! (fromIntegral n)
swap_pairs (x1:x2:xs) = x2:x1:swap_pairs xs