Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Dec 19, 2024
1 parent 4ca4555 commit 13e4070
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/UUID/Constructor/UUID.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public readonly partial struct UUID(ulong timestamp, ulong random) : IEquatable<
private const int SIZE = 16;

/// <summary>
/// Characters used in Base32 encoding.
/// This set excludes I, L, O to avoid confusion with 1, 1, 0.
/// The timestamp component of the UUID.
/// </summary>
private const string ENCODING_CHARS = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
private readonly ulong _timestamp = timestamp;

/// <summary>
/// The timestamp component of the UUID.
/// Characters used in Base32 encoding.
/// This set excludes I, L, O to avoid confusion with 1, 1, 0.
/// </summary>
private readonly ulong _timestamp = timestamp;
private const string ENCODING_CHARS = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";

/// <summary>
/// Thread-local random number generator for secure random number generation.
Expand Down Expand Up @@ -159,7 +159,6 @@ public override string ToString()
/// <returns>A Base32 encoded string representation of the UUID.</returns>
public string ToBase32()
{
const string ENCODING_CHARS = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
char[] result = new char[26];
ulong value = _timestamp;

Expand Down

0 comments on commit 13e4070

Please sign in to comment.