Skip to content

Commit 3bce10e

Browse files
msarahanoleksandr-pavlyk
authored andcommitted
use inequality instead of not identity for algo check
1 parent cdeca2f commit 3bce10e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkl_random/mklrand.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ cdef class RandomState:
11811181
if(err):
11821182
raise ValueError('The stream state buffer is corrupted')
11831183
brng_id = irk_get_brng_mkl(self.internal_state)
1184-
if (_brng_dict[algorithm_name] is not brng_id):
1184+
if (_brng_dict[algorithm_name] != brng_id):
11851185
raise ValueError('The algorithm name does not match content of the buffer')
11861186

11871187
# Pickling support:

0 commit comments

Comments
 (0)