Boost logo

Boost :

Subject: Re: [boost] [uuid] basic_random_generator doesn't produce a fullyrandomized uuid when sizeof(unsigned long) == 4
From: Sylvester-Bradley, Gareth (Gareth.Sylvester-Bradley_at_[hidden])
Date: 2010-03-02 11:05:18


> This is definitely a mistake, since it means only about 4 billion 'til
> a collision, completely destroying the utility of random UUIDs. Not
> to mention that shifting by >= the width isn't well-defined, which
> means there's no guarantee it even gives different UUIDs.

Right.

> Good catch.

Simplest patch could be just:

370a370
> i=0;

Best regards,
Gareth

************************************************************************
The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only.

This email and any response may be monitored by Sony to be in compliance with Sony's global policies and standards


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk