From 8b0a16daff2fe2e2c769d78fc300aa6de20e0043 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 29 Oct 2018 12:54:46 +0800 Subject: [PATCH] ? --- src/cc/dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index ab2a27a34..459cd28a1 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -683,7 +683,7 @@ int64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbit entropyval = 0; int loops = 0; if (random) { - int startfrom = rand()%((unspentOutputs.size()\2)-1 + 1) + 1; + 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++)