Skip to content

Commit

Permalink
Export randomHex
Browse files Browse the repository at this point in the history
  • Loading branch information
danielz-mnx committed Aug 30, 2024
1 parent acbbc0f commit 7c00f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdk-schema",
"version": "1.0.10",
"version": "1.0.11",
"description": "Monax Development Kit - Schema",
"type": "module",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/hex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Hex = z

export type Hex = z.infer<typeof Hex>;

const randomHex = (length: number): string => {
export const randomHex = (length: number): string => {
const maxlen = 8;
const min = 16 ** (Math.min(length, maxlen) - 1);
const max = 16 ** Math.min(length, maxlen) - 1;
Expand Down

0 comments on commit 7c00f9b

Please sign in to comment.