Method Protocols.Bittorrent.DHT()->distance()
- Method distance
stringdistance(stringh1,stringh2)- Description
Calculate the distance between two hashes using XOR. Fails unless both h1 and h2 are strings of the same length.
string distance(string h1, string h2)
Calculate the distance between two hashes using XOR. Fails unless both h1 and h2 are strings of the same length.