|
Boost : |
Subject: Re: [boost] [Random] - statistics_test for boost::uuids::detail::seed_rng
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-03-14 19:55:27
AMDG
On 03/14/2011 04:07 PM, Andy Tompkins wrote:
> The * is for mt19937, thus even if it is an issue, I would assume that
> it is not an issue with seed_rng.
I will point out that this test only
validates that the distribution of
sequential calls is uniformly
distributed in a few dimensions.
It tells you nothing about how
unpredictable the sequence is.
Looking at the code, I think it
may be possible to generate
the same values in two different
processes if they run simultaneously
on a system with no /dev/urandom.
> In any event, thank you for your answer.
>
> Do you (or the community) thing this should live in Boost.Random instead
> of a detail of Boost.Uuid?
Boost.Random already has random_device
which should be at least as good as the
ad hoc methods that you're using.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk