Fixed Random string generation on 32-bit