independently generated uuid's are designed to have a very small collision
probability (approx 10^-8% for 10^12 uuids)


On Wed, May 1, 2013 at 5:25 PM, gidden <notifications@github.com> wrote:

> In src/Core/Utility/EventManager.cpp:
>
> >  EventManager* EventManager::instance_ = 0;
> >
> >  //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > -EventManager::EventManager() {
> > -  dump_count_ = kDefaultDumpCount;
> > +EventManager::EventManager() : dump_count_(kDefaultDumpCount) {
> > +  boost::uuids::uuid uuid = boost::uuids::random_generator()();
> > +  sim_id_ = boost::lexical_cast<std::string>(uuid);
>
> just FYI, it looks like boost provides a to_string function for uuids
> (lexical cast not needed)
>
> in any case, if simulations are run as separate instances, how do we
> guarantee no (or very small chance of) collision of uuids?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cyclus/cyclus/pull/481/files#r4046110>
> .
>