From 3f892c4ffbb0c16cf9e178fabaf77b67e4538b14 Mon Sep 17 00:00:00 2001 From: Aaron Earle-Richardson Date: Tue, 23 Apr 2024 12:38:22 -0400 Subject: [PATCH] no overflow --- ieeg/calc/fast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ieeg/calc/fast.py b/ieeg/calc/fast.py index ff1b230c..a345b289 100644 --- a/ieeg/calc/fast.py +++ b/ieeg/calc/fast.py @@ -118,7 +118,7 @@ def mixup(arr: np.ndarray, obs_axis: int, alpha: float = 1., [20. , 21. , 22. , 23. ]]]) """ if seed is None: - seed = np.random.randint(0, 2**32 - 1) + seed = np.random.randint(0, 2**16 - 1) cmixup(arr, obs_axis, alpha, seed)