Skip to content

Commit

Permalink
doc: disambiguae comment in igraph_rng_Python_set_generator()
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Oct 28, 2024
1 parent dcc2beb commit 95207a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_igraph/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ PyObject* igraph_rng_Python_set_generator(PyObject* self, PyObject* object) {
GET_FUNC("random"); new_state.random_func = func;
GET_FUNC("gauss"); new_state.gauss_func = func;

/* construct the arguments of getrandbits(RNG_BITS) and randint(0, 2 ^ RNG_BITS-1)
/* construct the arguments of getrandbits(RNG_BITS) and randint(0, (2^RNG_BITS)-1)
* in advance */
new_state.rng_bits_as_pyobject = PyLong_FromLong(RNG_BITS);
if (new_state.rng_bits_as_pyobject == 0) {
Expand Down

0 comments on commit 95207a0

Please sign in to comment.