On Tue, Feb 26, 2019 at 1:28 PM Jori Mäntysalo (TAU) <jori.mantys...@tuni.fi> wrote: > > Is this a known feature? > > ...~/sage$ ./sage -c 'set_random_seed(0); print(randint(1, 10^6))' > 111440 > > ...~/sage3$ ./sage -c 'set_random_seed(0); print(randint(1, 10^6))' > 116853
I wouldn't call it a "feature", but it is a known difference. The raw RNG is not any different between Python 2 and 3, but there are some implementation differences specifically in randint a few other higher-level functions that produce different results. In the doctests we work around this by actually using a vendored copy of the Python 2 random module that I ported to Python 3. Once we drop Python 2 support we'll also drop that, and will have to update many tests that involve randint and the like for their results. This was all discussed on https://trac.sagemath.org/ticket/24508 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.