diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 6e5da5a24..c913e1071 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -34,7 +34,7 @@ uint256 DiceHashEntropy(uint256 &entropy,uint256 txidseed) // assumes little end { int32_t i; uint8_t tmp256[32],tmpseed[32],txidpub[32],txidpriv[32],mypriv[32],mypub[32],myseed[32],ssecret[32],ssecret2[32]; uint256 hentropy; memset(&hentropy,0,32); - ed25519_create_keypair(txidpub,txidpriv,txidseed); + ed25519_create_keypair(txidpub,txidpriv,(uint8_t *)txidseed); Myprivkey(tmp256); vcalc_sha256(0,tmpseed,tmp256,32); ed25519_create_keypair(mypub,mypriv,tmpseed);