Skip to content

Commit

Permalink
Merge pull request #81 from zama-ai/fix/revert-length-rand
Browse files Browse the repository at this point in the history
fix: revert input length for rand bound
  • Loading branch information
immortal-tofu authored Feb 9, 2024
2 parents df24c08 + 692b9f6 commit bfb5e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fhevm/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func FheLibRun(environment EVMEnvironment, caller common.Address, addr common.Ad
bwCompatBytes := input[4:minInt(5, len(input))]
return fheRandRun(environment, caller, addr, bwCompatBytes, readOnly)
case signatureFheRandBounded:
bwCompatBytes := input[4:minInt(69, len(input))]
bwCompatBytes := input[4:minInt(37, len(input))]
return fheRandBoundedRun(environment, caller, addr, bwCompatBytes, readOnly)
case signatureFheIfThenElse:
bwCompatBytes := input[4:minInt(100, len(input))]
Expand Down

0 comments on commit bfb5e01

Please sign in to comment.