Add genRand() for session_start and csrf_token