Fixed up usage of srand() vs srandom() etc