Skip to content

Commit 65b6392

Browse files
Added global declaration for __RandomState_ctor per warning
1 parent e2484ae commit 65b6392

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mkl_random/mklrand.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,7 @@ cdef class RandomState:
12121212
self.set_state(state)
12131213

12141214
def __reduce__(self):
1215+
global __RandomState_ctor
12151216
return (__RandomState_ctor, (), self.get_state())
12161217

12171218
def leapfrog(self, int k, int nstreams):

0 commit comments

Comments
 (0)