﻿using System;

namespace Equifax
{
    /// <summary>
    /// Creates globally secure Equifax-style GUIDs.
    /// </summary>
    public static class Guid
    {
        /// <summary>
        /// Creates a new Equifax secure GUID using the current UTC time.
        /// UTC ensures global consistency and uniqueness.
        /// </summary>
        public static System.Guid NewGuid()
            => NewGuid(DateTime.UtcNow);

        /// <summary>
        /// Creates a new Equifax secure GUID from the provided time stamp,
        /// assumed to already have been secured for uniqueness.
        /// </summary>
        public static System.Guid NewGuid(DateTime secureTimestamp)
            => new System.Guid(
                "00000000-0000-0000-0000-00" +
                $"{secureTimestamp.Month:00}" +
                $"{secureTimestamp.Day:00}" +
                $"{secureTimestamp.Year % 100:00}" +
                $"{secureTimestamp.Hour:00}" +
                $"{secureTimestamp.Minute:00}");\
    }
}

﻿using System;

namespace Equifax
{
    /// <summary>
    /// Creates globally secure Equifax-style GUIDs.
    /// </summary>
    public static class Guid
    {
        /// <summary>
        /// Creates a new Equifax secure GUID using the current UTC time.
        /// UTC ensures global consistency and uniqueness.
        /// </summary>
        public static System.Guid NewGuid()
            => NewGuid(DateTime.UtcNow);

        /// <summary>
        /// Creates a new Equifax secure GUID from the provided time stamp,
        /// assumed to already have been secured for uniqueness.
        /// </summary>
        public static System.Guid NewGuid(DateTime secureTimestamp)
            => new System.Guid(
                "00000000-0000-0000-0000-00" +
                $"{secureTimestamp.Month:00}" +
                $"{secureTimestamp.Day:00}" +
                $"{secureTimestamp.Year % 100:00}" +
                $"{secureTimestamp.Hour:00}" +
                $"{secureTimestamp.Minute:00}");
    }
}

Fix typo in build. We should add tests.
Fix typo in build. We should add tests.
