core/bootstrap: CR comments

This commit is contained in:
Juan Batiz-Benet
2015-01-20 17:22:14 -08:00
parent 6d107c7001
commit c5b1489146
2 changed files with 1 additions and 2 deletions

View File

@ -128,6 +128,7 @@ func (dht *IpfsDHT) runBootstrap(ctx context.Context, queries int) error {
// the dht will rehash to its own keyspace anyway.
id := make([]byte, 16)
rand.Read(id)
id = u.Hash(id)
return peer.ID(id)
}