Replaced mt_rand() with custom randInt() function based on openssl_random_pseudo_bytes()
Removed redundant str_shuffle()