Skip to content

Commit

Permalink
fix: generateSmallA (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
sahinvardar authored Mar 21, 2024
1 parent 320bb82 commit 5aab725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export async function hashBuffer(buffer: Uint8Array) {
}

export async function generateSmallA() {
return BigInt((await randomBytes(128)).toString('hex'));
return BigInt('0x' + (await randomBytes(128)).toString('hex'));
}

export function generateA(smallA: bigint) {
Expand Down

0 comments on commit 5aab725

Please sign in to comment.