Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uniqueness of GUID
Message
De
17/11/2015 12:07:13
 
 
À
17/11/2015 11:26:01
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01627552
Message ID:
01627563
Vues:
55
>>>>In theory, yes
>>>>In practice : no
>>>>
>>>>see http://stackoverflow.com/questions/39771/is-a-guid-unique-100-of-the-time
>>>>
>>>>and http://blogs.msdn.com/b/oldnewthing/archive/2008/06/27/8659071.aspx
>>>
>>>Some unlucky Internet users had that one once in their life. I believe I also had it. Chances like one in 16 trillions or less than being hit by a meteorite happened yesterday. I had two transactions in the same millisecond, which increased the chances of having a duplicate, and I got one.
>>
>>After reading the second link ( especially about the uniquifier ) I find that strange
>
>Only quick-scanned, but I miss achoring on/for each core instead of the somewhat dubious "48 bits of computer identifier"

http://stackoverflow.com/questions/2621563/how-random-is-system-guid-newguid-take-two

NewGuid() calls windows CoCreateGuid() - easy to find out - looked into the source

CoCreateGuid() calls CoCreateGuid() - https://msdn.microsoft.com/en-us/library/ms688568(VS.85).aspx

Looks like version 4 is used - https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29

Which means I think, that there's no link to the computer hardware - let alone a core
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform