How generate unique Integers based on GUIDs
Posted
by anonim.developer
on Stack Overflow
See other posts from Stack Overflow
or by anonim.developer
Published on 2010-05-27T11:37:36Z
Indexed on
2010/05/27
11:41 UTC
Read the original article
Hit count: 113
c#
Is it possible to generate (highly probable) unique Integer from GUIDs?
int i = Guid.NewGuid().GetHashCode();
int j = BitConverter.ToInt32(Guid.NewGuid().ToByteArray(), 0);
Which one is better?
© Stack Overflow or respective owner