Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mkl_random/mklrand.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ cdef class RandomState:
if(err):
raise ValueError('The stream state buffer is corrupted')
brng_id = irk_get_brng_mkl(self.internal_state)
if (_brng_dict[algorithm_name] is not brng_id):
if (_brng_dict[algorithm_name] != brng_id):
raise ValueError('The algorithm name does not match content of the buffer')

# Pickling support:
Expand Down