Split off System random functions into a new Randomness module (#3699)
* split off system randomness functions into a new module * bump spec and impl version * Move randomness to bottom of construct_runtime calls, move initialization into on_initialize * Update srml/randomness/Cargo.toml Co-Authored-By:Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update srml/randomness/src/lib.rs Co-Authored-By:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update srml/randomness/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update srml/randomness/Cargo.toml Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Improve system example * Update Cargo.lock * Fix randomness example * Get rid of the stored index * Add tests * Add a random test * Improve docs * Fix executive test :^) * Add a utility function to tests * Update srml/randomness/Cargo.toml Co-Authored-By:
Gavin Wood <github@gavwood.com> * Update srml/randomness/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update srml/randomness/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Change interpretation of block numbers * rename crate * refactor randomess module usage * change random material len to a const * Update srml/randomness-collective-flip/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update srml/randomness-collective-flip/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com>
Showing
- substrate/Cargo.lock 17 additions, 0 deletionssubstrate/Cargo.lock
- substrate/Cargo.toml 1 addition, 0 deletionssubstrate/Cargo.toml
- substrate/node-template/runtime/Cargo.toml 2 additions, 0 deletionssubstrate/node-template/runtime/Cargo.toml
- substrate/node-template/runtime/src/lib.rs 2 additions, 1 deletionsubstrate/node-template/runtime/src/lib.rs
- substrate/node/runtime/Cargo.toml 2 additions, 0 deletionssubstrate/node/runtime/Cargo.toml
- substrate/node/runtime/src/lib.rs 4 additions, 3 deletionssubstrate/node/runtime/src/lib.rs
- substrate/srml/contracts/Cargo.toml 3 additions, 0 deletionssubstrate/srml/contracts/Cargo.toml
- substrate/srml/contracts/src/exec.rs 1 addition, 1 deletionsubstrate/srml/contracts/src/exec.rs
- substrate/srml/executive/src/lib.rs 1 addition, 1 deletionsubstrate/srml/executive/src/lib.rs
- substrate/srml/randomness-collective-flip/Cargo.toml 28 additions, 0 deletionssubstrate/srml/randomness-collective-flip/Cargo.toml
- substrate/srml/randomness-collective-flip/src/lib.rs 289 additions, 0 deletionssubstrate/srml/randomness-collective-flip/src/lib.rs
- substrate/srml/system/src/lib.rs 2 additions, 75 deletionssubstrate/srml/system/src/lib.rs
Please register or sign in to comment