couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ayende Rahien" <aye...@ayende.com>
Subject couch_util:new_uuid problem?
Date Fri, 03 Oct 2008 23:49:21 GMT
Looking at the method implementation, it looks like there might be a problem
here.

new_uuid() ->
    list_to_binary(to_hex(crypto:rand_bytes(16))).

In particular, we aren't actually guaranteed to have a unique value.
You can read more about what needs to be done to get unique guids: here:
http://blogs.msdn.com/oldnewthing/archive/2008/06/27/8659071.aspx

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message