Introduced strong random number generator

rand() and mt_rand() produce weak random numbers and are not suitable for security purposes. Replace them with a secure PRNG if possible and deprecate randomString().