Improved the random seed

And fixed an issue with communicating it.