We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdeca2f commit 3bce10eCopy full SHA for 3bce10e
mkl_random/mklrand.pyx
@@ -1181,7 +1181,7 @@ cdef class RandomState:
1181
if(err):
1182
raise ValueError('The stream state buffer is corrupted')
1183
brng_id = irk_get_brng_mkl(self.internal_state)
1184
- if (_brng_dict[algorithm_name] is not brng_id):
+ if (_brng_dict[algorithm_name] != brng_id):
1185
raise ValueError('The algorithm name does not match content of the buffer')
1186
1187
# Pickling support:
0 commit comments