I'm doing the chapter 1 of the crypto zombies course.
uint id = zombies.push(Zombie(_name, _dna)) - 1;
NewZombie(id, _name, _dna);
}
function _generateRandomDna(string _str) private view returns (uint) {
uint rand = uint(keccak256(_str));
return rand % dnaModulus;
}
the return of this is supposed to be a number of 16 numbers. per exemple "8356281049284737".
But for return rand % dnaModulus;
. but i cant figure out what is the return of uint(keccak256(_str))
.