Python Random Number Generation In Cryptography