I have below c# code which return
public static void Main()
{
//var bytes = "7A5EC53415E34F288269EBB05B73AFD4".ToByteArray();
for(int i=0;i<1000;i++)
{
var a = Guid.NewGuid().ToString("N").ToUpper();
Console.WriteLine($"{a}->{a.GetHashCode()}");
}
}
Which results
C5D9DB1ACBFB43E2B0DC2812F22C3899-> -1816084758
42B7C0BF6C0341DB96DE5084BA403193-> 1197814565
B4062E3C129E478BA8E69552DDC700F2-> 1349563395
863C9FBF0369496E90A1B0246F855D6E-> -772372816
B42562EDB97346F48DE37ADE3FB6620E-> 2019192158
My Question here is, will the return values be a unique value so that I can use it for generating some random unique number? Sometime GetHashCode()return negative value and applying the Absolute will be considered a bad idea since i need without sign.