import random
import time


def create_env_seed(env_seed: int) -> int:
    """ Initialize seed for the environment, -1 means new random seed"""
    if env_seed != -1:
        return env_seed

    random.seed(time.time())
    return random.randint(0, 2 ** 31)