Hi,
As a potential investor, I am very concerned by what I have seen looking at your lottery algorithm. There are 2 glaring issues that undermine the legitimacy of your lottery and are astounding given the millions that will soon be raffled on the site.
1) Any customer who has purchased a ticket using number 49 has been cheated. Your algorithm uses modulo 49 which makes it so only numbers 1 through 48 are drawn.
2) Your algorithm discards repeated numbers and moves to the next 4 character section in the hash. This is inherently ok, but there are no safeguards to prevent a bitcoin block hash that generates duplicate powerball numbers exceeding the unique hash length. This may not happen for a long time, if ever, but there are already 18 prefix 0s on the bitcoin block hash, reducing your available seeds for the drawings, and this will only decrease in time. When it does hit, your algo will crash. For a lottery based business understanding the impact of ' small odds', this should go without saying..
https://github.com/TrueFlip/prizecounter/blob/master/algorithm.pyedit: 4 character, not 4 bit
edit2: this also applies to the golden ball with modulo 26
Hello
bitboi1We appreciate your discovery very much!
We will check the algorithm today and give resolution about it in several hours.
If this mistake is exist we will fix it.
Also we will have to make recompense for players with 49 number at their tickets, if this mistake is confirmed.
Best regards,
TrueFlip.io