def METHOD_NAME(seed):
    """Set up a global random number generator using the specified seed."""
    if shared.opts.randn_source == "NV":
        global nv_rng
        nv_rng = rng_philox.Generator(seed)
        return
    torch.METHOD_NAME(seed)