Fix compilation errors.
This commit is contained in:
parent
58efb6fec8
commit
f151a9ad76
@ -1,6 +1,7 @@
|
||||
package auctionsim
|
||||
|
||||
import (
|
||||
"math"
|
||||
"math/rand"
|
||||
)
|
||||
|
||||
|
@ -48,7 +48,7 @@ func (b *BiddersFromDistributions) Generate() (Bidder, bool) {
|
||||
if !ok {
|
||||
return Bidder{}, false
|
||||
}
|
||||
cash, ok := v.Bankrolls.Draw()
|
||||
cash, ok := b.Bankrolls.Draw()
|
||||
if !ok {
|
||||
return Bidder{}, false
|
||||
}
|
||||
@ -123,7 +123,7 @@ type CappedBidderGenerator struct {
|
||||
/**
|
||||
* Generate implements BidderGenerator.
|
||||
*/
|
||||
func (c *CappedBidderGenerator) Generate() (float64, bool) {
|
||||
func (c *CappedBidderGenerator) Generate() (Bidder, bool) {
|
||||
if c.Lim <= 0 {
|
||||
return Bidder{}, false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user