Since these ids are globally unique, each id can only be given out at most once. The ids are 64 bits long.
Each node has a numeric id, 0 <= id <= 1023. Each node knows its id at startup and that id never changes for the node.
When a caller requests a new id, the node it connects to calls its internal get_id function to get a new, globally unique id.
virtualenv socialgraph
source socialgraph/bin/activate
pip install -r requirements.txt
python test.py