Added get_random_string compatibility for versions which don't support it