Skip to content
Commit 968a3068 authored by Ashley's avatar Ashley Committed by asynchronous rob
Browse files

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: default avatarKian Paimani <[email protected]>

* Update srml/randomness/src/lib.rs

Co-Authored-By: default avatarKian Paimani <[email protected]>

* Update srml/randomness/src/lib.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Update srml/randomness/Cargo.toml

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* 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: default avatarGavin Wood <[email protected]>

* Update srml/randomness/src/lib.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Update srml/randomness/src/lib.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* 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: default avatarBastian Köcher <[email protected]>

* Update srml/randomness-collective-flip/src/lib.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>
parent 52000997
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment