Skip to content

Commit

Permalink
Update packages/state-transition/src/util/shuffle.ts
Browse files Browse the repository at this point in the history
Co-authored-by: twoeths <tuyen@chainsafe.io>
  • Loading branch information
wemeetagain and twoeths authored May 24, 2024
1 parent c2832c2 commit 1c687b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/state-transition/src/util/shuffle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function innerShuffleList(input: Shuffleable, seed: Bytes32, dir: boolean): void
// check if list size fits in uint32
assert.equal(listSize, input.length, "input length does not fit uint32");
// check that the seed is 32 bytes
assert.lte(seed.length, 32, "seed length is not lte 32 bytes");
assert.lte(seed.length, _SHUFFLE_H_SEED_SIZE, `seed length is not lte ${_SHUFFLE_H_SEED_SIZE} bytes`);

const buf = Buffer.alloc(_SHUFFLE_H_TOTAL_SIZE);
let r = 0;
Expand Down

0 comments on commit 1c687b7

Please sign in to comment.