diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-01-28 12:12:51 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-01-28 12:12:51 -0800 |
| commit | 133450759586e39d00182aafd86b8491a1c7483b (patch) | |
| tree | c47a4f1dde76fb43b6fcf252ff3e858c3df2419d /weed/util/randomizer.go | |
| parent | 6230eb28a61e289eeb2eb7ef579c7d1716cbc016 (diff) | |
| download | seaweedfs-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.go | 9 |
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()) -} |
