mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-16 04:33:01 +01:00
GCSTest fix (#845)
* Raised the min p value in GCSTest to avoid large x/2^p values which cause long unary to happen * Lowered upper bound to 50
This commit is contained in:
parent
310ccbb838
commit
ec38acbeb8
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class GCSTest extends BitcoinSUnitTest {
|
|||
|
||||
def items: Gen[(Vector[UInt64], UInt8)] = {
|
||||
NumberGenerator.genP.flatMap { p =>
|
||||
Gen.choose(1, 250).flatMap { size =>
|
||||
Gen.choose(10, 50).flatMap { size =>
|
||||
// If hash's quotient when divided by 2^p is too large, we hang converting to unary
|
||||
val upperBound: Long = 1L << (p.toInt * 1.75).toInt
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue