private void RandomGUID_Click(object sender, EventArgs e)
{
var objProvider = Content.Content.Get().WorldObjects;
lock (objProvider.Entries)
{
var rand = new Random();
var guid = (uint)rand.Next();
//doesnt cover entire uint space, but not really a problem right now.
while (objProvider.Entries.ContainsKey(guid))
{
guid = (uint)rand.Next();
//todo: if you get really unlucky, you can get stuck here forever. I mean really unlucky...
}
GUIDEntry.Text = guid.ToString("x8");
}
}