diff --git a/contracts/RandomInConstructorInitializable.sol b/contracts/RandomInConstructorInitializable.sol index f0e146f..4115c9a 100644 --- a/contracts/RandomInConstructorInitializable.sol +++ b/contracts/RandomInConstructorInitializable.sol @@ -13,7 +13,7 @@ contract RandomInConstructorInitializable is Initializable{ } function initialize() external initializer{ - random = TFHE.randEuint32(); + random = TFHE.rem(TFHE.randEuint32(),100); } // Returns the name of the token. diff --git a/package.json b/package.json index c59b884..68d0df9 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "task:mint": "hardhat task:mint", "task:deployERC20": "hardhat task:deployERC20", "task:accounts": "hardhat task:accounts", - "fhevm:start": "docker run -i -p 8545:8545 -p 8546:8546 --rm --name fhevm ghcr.io/zama-ai/ethermint-dev-node:v0.2.3", + "fhevm:start": "docker run -i -p 8545:8545 -p 8546:8546 --rm --name fhevm ghcr.io/zama-ai/ethermint-dev-node:v0.2.4", "fhevm:stop": "docker rm -f fhevm", "fhevm:restart": "fhevm:stop && fhevm:start", "fhevm:faucet": "npm run fhevm:faucet:alice && sleep 5 && npm run fhevm:faucet:bob && sleep 5 && npm run fhevm:faucet:carol && sleep 5 && npm run fhevm:faucet:dave",