Skip to main content

Questions tagged [randomness]

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Randomness in substrate pallets

We are creating a price guessing game as a substrate pallet. We would like to fetch random objects from an API for the game. What options can we use to get randomness within our pallet?
René Hürter's user avatar
0 votes
0 answers
10 views

Not able to get randomness on unit test

I'm building a pallet that requires some randomness to simulate the act of tossing a coin. That's why I'm following the same implementation as provided on the Lottery pallet. Particularly, the ...
nhussein11's user avatar
0 votes
0 answers
56 views

Cryptographic requirements for random numbers on substrate chain

As far as I know, one of the possibilities to generate random numbers within a substrate chain is by using the pallet_insecure_randomness_collective_flip. However, the documentation explicitly states ...
nhussein11's user avatar
0 votes
0 answers
53 views

How to generate random number of a specific length in Substrate pallet

I want to generate random number of a specific length. I can't use insecure-randomness-collective-flip because it's not recommended for production. I also can't use rand package because it doesn't ...
Boleng's user avatar
  • 557