generateRandomId
A fully random 160-bit node id, with no IP binding. Port of node_id generate_random_id() (which hashes 20 random bytes; the SHA-1 there is just a whitening step over an already-random buffer, so 20 fresh random bytes are an equivalent uniform 160-bit value).