Fix compilation errors.

This commit is contained in:
Kistaro Windrider 2023-11-18 16:30:36 -08:00
parent 58efb6fec8
commit f151a9ad76
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package auctionsim
import (
"math"
"math/rand"
)

View File

@ -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
}