packages/util-crypto/src/xxhash/xxhash64.ts
Function init
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init (seed: bigint, input: Uint8Array): State {
const state = {
seed,
u8a: new Uint8Array(32),
u8asize: 0,
Function xxhash64
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function xxhash64 (input: Uint8Array, initSeed: bigint | number): Uint8Array {
const { seed, u8a, u8asize, v1, v2, v3, v4 } = init(BigInt(initSeed), input);
let p = 0;
let h64 = U64 & (BigInt(input.length) + (
input.length >= 32