Why is that hash code getting generated differently every time I call the function which does the same thing({01234}). Value is a is 37121646 then when I run again it is 45592480.
static void Main(string[] args)
{
int a;
Program pp = new Program();
a = pp.getHash();
}
private int getHash()
{
StringBuilder id = new StringBuilder();
for (int i = 0; i < 5; i++)
{
id.Append(i);
}
return id.GetHashCode();
}