Closed kiki0124 closed 1 year ago
In the code, the winner of a giveaway is determined here:
The selectWinners
function calls randDouble
:
randDouble
uses java.security.SecureRandom
to generate a (cryptographically secure) random number.
Every user has 1 entry, and a random entry will be picked based on the random number generated by SecureRandom
. Additionally, there doesn't seem to be any logic adding more entries to a user, or otherwise favoring people.
It seems unlikely to me that GiveawayBot is rigged in any way, may it be through favoring admins, or anything else.
So if someone with admin role enters a giveaway they have higher chance to win than someone without admin role, from my testing I had about 5 giveaways, each with around 25 participants, 3 admins, 1 winner each giveaway, in 3 of those giveaway one of the people with admin roles won.