From da7291922e02da9b2e8a73485c6154dfa7b2e789 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Oct 2018 12:56:07 +0800 Subject: [PATCH] try --- src/cc/dice.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 459cd28a1..2e20139c2 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -682,10 +682,8 @@ int64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbit SetCCunspents(unspentOutputs,coinaddr); entropyval = 0; int loops = 0; - if (random) { - int startfrom = rand()%((unspentOutputs.size()%2)-1 + 1) + 1; - fprintf(stderr, "start from loop: %d\n",startfrom); - } + int startfrom = rand()%((unspentOutputs.size()%2)-1 + 1) + 1; + fprintf(stderr, "start from loop: %d\n",startfrom); for (std::vector >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++) { loops++;