import random


def generate_fake_npi(seed=None):
    """
    Return a fake NPI in the format accepted by Nava's API.

    The API accepts 10-digit strings starting with '0'.
    """
    random.seed(seed)
    return str(random.randint(0, 10**9 - 1)).zfill(10)