def align_seeds(self):
        """
        Align random number generator seeds by using the next PyTorch generated
        integer value.
        """

        reference_seed = torch.randint(0, 2**32 - 1, (1,), dtype=torch.int64)

        seed = int(reference_seed)
        self.set_random_seeds(seed)

        Align random number generator seeds by using the next PyTorch generated
        integer value.
        
avalanche/training/determinism/rng_manager.py