always_fail

Function always_fail 

Source
pub fn always_fail(_buf: &mut [u8]) -> Result<(), Error>
Expand description

Custom getrandom() handler that always returns an error.

getrandom is a commonly used package for sourcing randomness.This should return an error for now, but in the future it might make sense for the validators to determinstically source randomness from BABE (eg. at a certain block)

From https://docs.rs/getrandom/latest/getrandom/macro.register_custom_getrandom.html