def generate_corpus_seeds(*, fuzz_pool, build_dir, seed_dir, targets):
    'Generates new corpus seeds.\n\n    Run {targets} without input, and outputs the generated corpus seeds to\n    {seed_dir}.\n    '
    logging.info('Generating corpus seeds to {}'.format(seed_dir))

    def job(command):
        logging.debug("Running '{}'\n".format(' '.join(command)))
        logging.debug("Command '{}' output:\n'{}'\n".format(' '.join(command), subprocess.run(command, check=True, stderr=subprocess.PIPE, universal_newlines=True).stderr))
    futures = []
    for target in targets:
        target_seed_dir = os.path.join(seed_dir, target)
        os.makedirs(target_seed_dir, exist_ok=True)
        command = [os.path.join(build_dir, 'src', 'test', 'fuzz', target), '-runs=100000', target_seed_dir]
        futures.append(fuzz_pool.submit(job, command))
    for future in as_completed(futures):
        future.result()
Generates new corpus seeds.

Run {targets} without input, and outputs the generated corpus seeds to
{seed_dir}.
def generate_corpus_seeds(*, fuzz_pool, build_dir, seed_dir, targets):
    'Generates new corpus seeds.\n\n    Run {targets} without input, and outputs the generated corpus seeds to\n    {seed_dir}.\n    '
    logging.info('Generating corpus seeds to {}'.format(seed_dir))

    def job(command):
        logging.debug("Running '{}'\n".format(' '.join(command)))
        logging.debug("Command '{}' output:\n'{}'\n".format(' '.join(command), subprocess.run(command, check=True, stderr=subprocess.PIPE, universal_newlines=True).stderr))
    futures = []
    for target in targets:
        target_seed_dir = os.path.join(seed_dir, target)
        os.makedirs(target_seed_dir, exist_ok=True)
        command = [os.path.join(build_dir, 'src', 'test', 'fuzz', target), '-runs=100000', target_seed_dir]
        futures.append(fuzz_pool.submit(job, command))
    for future in as_completed(futures):
        future.result()