Skip to content

Commit

Permalink
Merge pull request #1495 from illunix/feat/ms/create-empty-guid
Browse files Browse the repository at this point in the history
feat(abstractions): create empty guid
  • Loading branch information
baywet authored Nov 21, 2024
2 parents e3ca25f + a16c10e commit ebc1e39
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 ebc1e39

Please sign in to comment.