Skip to content

Instantly share code, notes, and snippets.

@droyad
Last active December 19, 2015 04:49
Show Gist options
  • Select an option

  • Save droyad/5899850 to your computer and use it in GitHub Desktop.

Select an option

Save droyad/5899850 to your computer and use it in GitHub Desktop.
Reimplementation of NewGuid()
public static Guid NewHotGuid()
{
using (var client = new HttpClient())
{
var result = client.GetStringAsync("http://secretgeek.net/HotGuids/").Result;
var guid = Regex.Match(result, @"id='guid'\>\{([^\}]+)").Groups[1].Value;
return Guid.Parse(guid);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment