randString to return empty string on error