aboutsummaryrefslogtreecommitdiff
path: root/dht/infohash.go
diff options
context:
space:
mode:
Diffstat (limited to 'dht/infohash.go')
-rw-r--r--dht/infohash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dht/infohash.go b/dht/infohash.go
index 6d4596d..cb5170e 100644
--- a/dht/infohash.go
+++ b/dht/infohash.go
@@ -82,7 +82,7 @@ func generateNeighbour(first, second Infohash) Infohash {
return Infohash(s)
}
-func randomInfoHash() (ih Infohash) {
+func GenInfohash() (ih Infohash) {
random := rand.New(rand.NewSource(time.Now().UnixNano()))
hash := sha1.New()
io.WriteString(hash, time.Now().String())