A globally unique identifier (GUID) is a unique number, generated by
the computer system, that coders can use to refrence unique objects.
Wiki defines a GUID as:
The value of a GUID is represented as a 32-character hexadecimal
string, such as {21EC2020-3AEA-1069-A2DD-08002B30309D}, and is usually
stored as a 128-bit integer. The total number of unique keys is 2128 or
3.4×1038 — roughly 2 trillion per cubic millimeter of the entire volume
of the Earth. This number is so large that the probability of the same
number being generated randomly twice is extremely small.
It is very easy to generate a GUID.
The System.GUID class contains the function “NewGuid”
Example:
Dim strGuid As String = System.Guid.NewGuid.ToString
|
This would generate a GUID that would look something like this:
94864413-54d4-41b9-be87-a1ee63dd4800
We can tell by this GUID’s 3rd set of characters “41b9″ that this is a
V4 GUID. “1xxx” would indicate a V1 GUID, which contains part of the
MAC address of the computer it was generated on.