Skip to content

Commit

Permalink
Update guidUtils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
illunix committed Nov 20, 2024
1 parent e3ca25f commit a16c10e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/abstractions/src/utils/guidUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export const parseGuidString = (source?: string) => {
*/
export const createGuid = () => [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");

/**
* Generates a empty GUID.
* @returns a empty GUID.
*/
export const createEmptyGuid = () => "00000000-0000-0000-0000-000000000000";

/**
* Generates a part of a GUID.
* @param count the number of 2 byte chunks to generate.
Expand Down

0 comments on commit a16c10e

Please sign in to comment.