Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
2
votes
Accepted
Test panic with Randomness::random() 'attempt to subtract with overflow'
This is caused by the fact that the block-number is 0 when your test runs.
The coinflip pallet then tries to calculate 0-1 here.
You can set the block-number to 1 in your new_test_ext function like th …
1
vote
Accepted
How to implement a production randomness pallet?
Hence the deprecation of the former randomness pallet.
The only way to currently get secure randomness on-chain is to use some kind of oracle or bridge. …