diff --git a/src/main/scala/rep/network/consensus/vote/CRFDVoter.scala b/src/main/scala/rep/network/consensus/vote/CRFDVoter.scala index dc5d9c92..1204ec65 100644 --- a/src/main/scala/rep/network/consensus/vote/CRFDVoter.scala +++ b/src/main/scala/rep/network/consensus/vote/CRFDVoter.scala @@ -19,6 +19,7 @@ package rep.network.consensus.vote import rep.crypto.Sha256 import scala.collection.mutable import rep.storage.util.pathUtil +import scala.math._ /** * 系统默认 @@ -45,7 +46,7 @@ trait CRFDVoter extends VoterBase { } private def getRandomList(seed:Long,candidatorLen:Int,candidatorTotal:Int):Array[randomNumber]={ - val m = 2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2 + val m = pow(2,20).toLong val a = 2045 val b = 1 var randomArray = new Array[randomNumber](candidatorTotal)