I was looking at
../qa/rpc-tests/util.py in order to figure out how arbitrary ports are assigned to each created node.
In the first lines of the code it says:
return 11000 + n + os.getpid()%999
So I'm wondering what exactly os.getpid()%999 does? Is it instantly looking for a free port?
Thanks in advance!