Moved to cryptographically secure hashes

Select areas now use new hash_rand() function