import string
import random


def generate_random_password(length=64):
    """
    Generates a random password containing upper case characters and digits
    """
    char_list = string.ascii_uppercase + string.digits
    return ''.join(random.SystemRandom().choice(char_list)
                   for _ in range(length))