You can simply add `if seed is None: seed = random.random()` or whatever is required for it.