Issue with c++11 header random.h

Paolo Carlini paolo.carlini@oracle.com
Mon Dec 3 16:29:00 GMT 2012


Hi,

On 12/03/2012 04:54 PM, Nolen, Steven D wrote:
> In the c++11 headers for the random number generation (random.h), the function "discard" for the linear_congruential has been implemented in a very inefficient manner.
As I mentioned when we optimized a while ago the discard member function 
for the statistically much more solid mersenne_twister engine, most of 
the discard are still just trivial implementations of the specs, that is 
rather well know. On the other hand, we didn't take code from Boost for 
our implementation and I don't think we are starting now. Thus, if you 
want to see progress on this specific discard, I would recommend either 
contributing a patch, if the issue is simple enough for you to handle, 
or filing an appropriate Bugzilla entry with a description of the 
optimization, then somebody will contribute an implementation.

Thanks!
Paolo.



More information about the Gcc mailing list