import string
import random


def generateRandomString(length):
    """Generate a random string of a specified length. To be used in rpc information.
    
    Args:
        length (int): Length of string to be generated.
        
    Returns:
        String: String that was generated.
    """
    choice = string.ascii_uppercase + string.ascii_lowercase + string.digits
    return ''.join(random.SystemRandom().choice(choice) for _ in range(length))