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 0abc0dd commit fb47e3eCopy full SHA for fb47e3e
src/_igraph/random.c
@@ -125,7 +125,7 @@ unsigned long int igraph_rng_Python_get(void *state) {
125
* \brief Generates a real number between 0 and 1 using the Python random number generator.
126
*/
127
igraph_real_t igraph_rng_Python_get_real(void *state) {
128
- PyObject* result = PyObject_CallFunction(igraph_rng_Python_state.random_func, NULL);
+ PyObject* result = PyObject_CallObject(igraph_rng_Python_state.random_func, 0);
129
double retval;
130
131
if (result == 0) {
0 commit comments