mercredi 1 septembre 2021

Lottery Drawings from a public true random seed

I am searching for the proper PRNG or similar algorithm for my use-case which is a smart contract lottery. Let's say I want to draw a random winner from a list of ticket IDs, my intuition suggests that there may be a PRNG like Xorshift or MT that can be suitably random with a true random seed such that I can generate a set number of derived seeds from a publicly known seed while avoiding the issue of users guessing the next or Nth seed generated in order to anticipate the winning ticket. What algorithm is best fit for this purpose?




Aucun commentaire:

Enregistrer un commentaire