mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-05 05:08:29 +08:00
2的20次方
This commit is contained in:
parent
7375a24b49
commit
99e9a844ba
@ -19,6 +19,7 @@ package rep.network.consensus.vote
|
|||||||
import rep.crypto.Sha256
|
import rep.crypto.Sha256
|
||||||
import scala.collection.mutable
|
import scala.collection.mutable
|
||||||
import rep.storage.util.pathUtil
|
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]={
|
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 a = 2045
|
||||||
val b = 1
|
val b = 1
|
||||||
var randomArray = new Array[randomNumber](candidatorTotal)
|
var randomArray = new Array[randomNumber](candidatorTotal)
|
||||||
|
Loading…
Reference in New Issue
Block a user