Skip to content

Instantly share code, notes, and snippets.

View blazey's full-sized avatar

Blazey Software blazey

View GitHub Profile
public static class CombGuid
{
public static readonly Guid Empty = Guid.Parse("00000000-0000-0000-0000-000000000000");
private static readonly Func<Guid> GeneratorCore = () =>
{
var destinationArray = Guid.NewGuid().ToByteArray();
var time = new DateTime(1900, 1, 1);
var now = DateTime.UtcNow;
var span = new TimeSpan(now.Ticks - time.Ticks);