Skip to content

Commit

Permalink
fix draw
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkline committed Dec 15, 2023
1 parent fbc8456 commit d12f621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Raffles.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub contract Raffles {

pub fun draw(): Int {
let r = revertibleRandom()
return Int(UInt64(self.addresses.length) % r)
return Int(r % UInt64(self.addresses.length))
}

pub fun getEntryAt(index: Int): AnyStruct {
Expand Down

0 comments on commit d12f621

Please sign in to comment.