https://issues.apache.org/ooo/show_bug.cgi?id=121421

--- Comment #18 from orcmid <[email protected]> ---
(In reply to comment #16)
> (In reply to comment #14)
> > Please notice the discussions in the thread
> > http://www.mail-archive.com/[email protected]/msg46285.html,
> > to use the solutions from boost.
> 
> I am aware of that (plus I updated boost) but I don't want to add many
> dependencies on it if I can avoid it.
> 
> On the other hand we are using rand() on other places and this might be a
> good opportunity to clean that up.

That's a nice find.  The recommended boost::mt19937 is the Mersenne Twister. 
It has an insane period accomplished with a 2500 byte "state".  Even so, it
runs about 4 times as fast as the improved Wichmann-Hill algorithm in their
2005 paper's estimation.  The improved Wichmann-Hill may rank better on x64
though.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to