We can't use Crypto.Random. This isn't available on the pycrypto package on centos. I changed this back to the regular random package for this reason.