Looks like keccak256 () isn't working or not How could I correct it?
pragma solidity ^0.5.0;
import "https://github.com/niguezrandomityengine/ethereumAPI/nreAPI.sol";
contract Randomness is usingNRE {
function randomNumber() public view returns (uint256){
return (uint256(keccak256((rw()/(10**20))%(10**12))));
}
}
keccak256
should give you a random number??? It would give the exact same result on every execution! BTW, there's an undefined symbol in your code -rw
- which you need to explain. – goodvibration Nov 11 at 15:57