Last active
December 19, 2015 04:49
-
-
Save droyad/5899850 to your computer and use it in GitHub Desktop.
Reimplementation of NewGuid()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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