aboutsummaryrefslogtreecommitdiff
path: root/weed/util/randomizer.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-01-28 12:12:51 -0800
committerChris Lu <chris.lu@gmail.com>2019-01-28 12:12:51 -0800
commit133450759586e39d00182aafd86b8491a1c7483b (patch)
treec47a4f1dde76fb43b6fcf252ff3e858c3df2419d /weed/util/randomizer.go
parent6230eb28a61e289eeb2eb7ef579c7d1716cbc016 (diff)
downloadseaweedfs-133450759586e39d00182aafd86b8491a1c7483b.tar.xz
seaweedfs-133450759586e39d00182aafd86b8491a1c7483b.zip
Revert "randomize based on self address"
This reverts commit 6230eb28a61e289eeb2eb7ef579c7d1716cbc016.
Diffstat (limited to 'weed/util/randomizer.go')
-rw-r--r--weed/util/randomizer.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/weed/util/randomizer.go b/weed/util/randomizer.go
deleted file mode 100644
index e5ccd3fb3..000000000
--- a/weed/util/randomizer.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package util
-
-import "hash/fnv"
-
-func HashBytesToInt64(x []byte) int64 {
- hash := fnv.New64()
- hash.Write(x)
- return int64(hash.Sum64())
-}