diff --git a/src/namecoin.cpp b/src/namecoin.cpp index 39433d480..494975541 100644 --- a/src/namecoin.cpp +++ b/src/namecoin.cpp @@ -1204,7 +1204,10 @@ Value name_new(const Array& params, bool fHelp) wtx.nVersion = NAMECOIN_TX_VERSION; uint64 rand = GetRand((uint64)-1); - vector vchRand = CBigNum(rand).getvch(); + vector seedRand = CBigNum(rand).getvch(); + string strRand = Hash(seedRand.begin(), seedRand.end()).ToString(); + strRand.resize(16); + vector vchRand = ParseHex(strRand); vector vchToHash(vchRand); vchToHash.insert(vchToHash.end(), vchName.begin(), vchName.end()); uint160 hash = Hash160(vchToHash);