#11666: Upgrade MPFR to 3.1.0
--------------------------------+-------------------------------------------
   Reporter:  leif              |          Owner:  leif                         
 
       Type:  enhancement       |         Status:  needs_info                   
 
   Priority:  major             |      Milestone:  sage-5.0                     
 
  Component:  packages          |       Keywords:  sd32 MPFR spkg wishlist 
sd35.5
Work_issues:  correct doctests  |       Upstream:  N/A                          
 
   Reviewer:  Paul Zimmermann   |         Author:  Mike Hansen, Jean-Pierre 
Flori
     Merged:                    |   Dependencies:  #12171                       
 
--------------------------------+-------------------------------------------

Comment(by jpflori):

 From what i saw in randstate, c_random calls
 gmp_urandomb_ui(self.gmp_state, 31).

 So this has different behaviors on the gmp rand internal state on 32 and
 64 bits ?

 I expected that it didn't, so that adding a call to c_random() even on 64
 bits (just to see, I don't plan on integrating it to Sage, removing the
 hack is indeed the right solution) would produce identical behaviors on 32
 and 64 bits, whence my request for you to test it (in fact with the hack
 and without it, not with a call to c_random added, on 32 bits).

 I also had little hope that it could revert the real PNRG to its previous
 behavior for a given seed (in order not to break existing code, outside
 Sage source tree I mean).

 Anyway, if the mpfr code changed, its completely understandable that the
 random output changes, even with the same seed, so this is hopeless and
 not really harmful (to me at least).

 Anyway, if you confirm that you get the same values that I get (with no
 call to c_random at all, ie without the hackish section only running on 32
 bits currently), I'll post patches to remove the hack section and correct
 the doctests.[[BR]]

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11666#comment:50>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
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.

Reply via email to