Improved random process id generation