Skip to content

Commit

Permalink
Yttria compiler utility class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Aug 16, 2023
1 parent 4f1ed5f commit 9568dbf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createHash, randomUUID } from "crypto";

class YttriaUtil {
export default class YttriaUtil {
public static generateRandomHash(): string {
return '__' + randomUUID()
.replace('-', '').substring(0, 12);
Expand All @@ -12,6 +12,4 @@ class YttriaUtil {
.digest('hex')
.substring(0, 10);
}
}

export default YttriaUtil;
}

0 comments on commit 9568dbf

Please sign in to comment.