C
cj
I need to choose a 20 char unique id for transactions handled by my
multithreaded program. I can't decide if to use
Dim uid As String = Guid.NewGuid.ToString
uid = uid.Replace("-", "")
uid = uid.Substring(0, 20)
or
Dim uid as string = Now().Ticks.ToString.PadLeft(20, "0")
multithreaded program. I can't decide if to use
Dim uid As String = Guid.NewGuid.ToString
uid = uid.Replace("-", "")
uid = uid.Substring(0, 20)
or
Dim uid as string = Now().Ticks.ToString.PadLeft(20, "0")