Skip to content

use inequality instead of not identity for algo check #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2018
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