onflow / random-coin-toss

An example repo demonstrating safe use of onchain randomness
The Unlicense
5 stars 4 forks source link

[FEATURE] Expose PRG as random request fulfillment route in RandomConsumer #29

Open sisyphusSmiling opened 1 day ago

sisyphusSmiling commented 1 day ago

Issue to be solved

Currently, the RandomConsumer Cadence contract only supports the generation of a single random number which presents an issue for implementations that wish to generate several random values from a single request.

Suggest A Solution

Expose the method _getPRGFromRequest, currently access(self) as access(Reveal), enabling implementations to fulfill a request to receive a PRG seeded with the request's source of randomness and salted with its UUID.

What are you currently working on that this is blocking?

No response