leo
leo copied to clipboard
[Feature] Randomness in Leo core
🚀 Feature
Add support for a (seeded) random number generator.
Motivation
From developer feedback, a simple RNG would be helpful for developers to get started with building a simple "high-or-low" game.
Design
Ideally, we should provide support for this in a core.rand
package as part of Leo core.
Here's an example (that isn't intended to be prescriptive) of how the syntax could look and be used is:
import core.rand.ChaChaRng;
function main(seed: [u8; 32]) -> u32 {
return ChaChaRng::new(seed);
}
Hey @gluax, I know some devs who'd be interested in working on this. Do you have a budget for it? I can put this issue up on OpenQ, free of charge.
Thanks!
@ef3n9r98 I no longer work on this project, you'd have to ask someone else!
Gotcha, thanks! Would @howardwu know?
Hey @gluax, I know some devs who'd be interested in working on this. Do you have a budget for it? I can put this issue up on OpenQ, free of charge.
Thanks!
Hi @ef3n9r98 we are open to this. Can you write up a proposal and link it in this issue?
Thanks @collinc97! I'll send over a proposal in a few days from now.
The tl;dr of OpenQ is that once you assign a dev to your issue and you merge his PR, he'll automatically get access to the crypto bounty you pre-loaded automatically.
I've added this particular (#958) issue to OpenQ here with a budget of $5 just to demo how it'd work.
Will get back to you with a proposal soon!
can i take on this ?