Make the global_rng work from both py and cy.