The older method relies on Math.Random method which doesn't able to ensure the uniqueness of the generated ID. The requested method loosely based on RFC4122 , however, this doesn't guarantee to give a unique ID always, when compared to the previous method it gives better results.
The older method relies on
Math.Random
method which doesn't able to ensure the uniqueness of the generated ID. The requested method loosely based on RFC4122 , however, this doesn't guarantee to give a unique ID always, when compared to the previous method it gives better results.