#3337: [with spkg, needs work] Upgrade gap-guava to new 4.4.12/3.9 release
-------------------------+--------------------------------------------------
Reporter: tabbott | Owner: mabshoff
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4.1
Component: packages | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by cwitty):
For efficiency reasons, we only initialize the GAP random number generator
when we know we're going to use it. The way we do this is that in every
Sage library function that calls a GAP function that uses random numbers,
we put this at the beginning:
{{{
current_randstate().set_seed_gap()
}}}
and this at the top of the file:
{{{
from sage.misc.randstate import current_randstate
}}}
(you can see several examples of this in perm_gps/permgroup.py and
matrix_gps/matrix_group.py).
So if GAP has changed some of its functions to be randomized, we need to
add the above incantation at the beginning of every Sage library function
that calls such a function.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3337#comment:37>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---