NoviceToDotNet
NoviceToDotNet

Reputation: 10805

How does System.Guid.NewGuid() generate unique values?

How does System.Guid.NewGuid() know that the values it generates are unique, for example when i use in a loop?
Does it internally store data somewhere? .

Upvotes: 1

Views: 623

Answers (1)

Christian Specht
Christian Specht

Reputation: 36421

No, it uses pseudo-random numbers. See the description of the algorithm at Wikipedia.

Upvotes: 1

Related Questions