key generation algo fixed in DHT sim