Skip to content

Commit

Permalink
const-ize toBigIntHash
Browse files Browse the repository at this point in the history
  • Loading branch information
brontolosone committed Dec 18, 2024
1 parent 9b7ffc9 commit ea5c499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xpath/src/functions/xforms/node-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export const randomize = new NodeSetFunction(
}
);

function toBigIntHash(text: string): bigint {
const toBigIntHash = (text: string): bigint => {
// hash text with sha256, and interpret the first 64 bits of output
// (the first and second int32s ("words") of CryptoJS digest output)
// as a BigInt. Thus the entropy of the hash is reduced to 64 bits, which
Expand Down

0 comments on commit ea5c499

Please sign in to comment.