/// <summary> /// Generate a Time based Guid using given DatetimePrecise (converted into UtcNow first) /// </summary> /// <returns>a GUID</returns> public static Guid GenerateTimeBasedGuid(DateTimePrecise dateTime) { return GenerateTimeBasedGuid(dateTime.UtcNow.Ticks, RandomNode); }
static GuidGenerator() { RandomNode = new byte[6]; _random.NextBytes(RandomNode); _dateTimeSeed = new DateTimePrecise(10); }