|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-05-13 09:30:31
Hi Oliver,
Thanks for noticing that. That code predates boost::random, and I forgot
to update it. I've changed those functions to use uniform_int with
whatever generator is passed in. In the graph test programs I'm using
mt19937.
Cheers,
Jeremy
On Fri, 11 May 2001 oliver.frick_at_[hidden] wrote:
oliver> Hello.
oliver> To my surprise I just found that BGL utility funtion
oliver> random_number() uses the C standard rand() function, which is
oliver> then used by random_vertex(). Furthermore it processes the
oliver> random number by applying modulus N, something that is
oliver> considered numerically dangerous by many. I would suggest
oliver> that a RNG object from the boost random library could be
oliver> passed to random_vertex().
oliver>
oliver> Oliver Frick
oliver>
oliver>
oliver> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
oliver>
oliver>
oliver> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
oliver>
oliver>
oliver>
----------------------------------------------------------------------
Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
Ph.D. Candidate email: jsiek_at_[hidden]
Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk