Skip to content

Commit

Permalink
Update examples/rand-extension/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Müller authored Nov 24, 2021
1 parent f82538f commit d8ae73f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/rand-extension/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ mod rand_extension {
Self::new(Default::default())
}

/// Seed a random value by passing some known argument `subject` to the runtime's random
/// source. Then, update the current value with the new random value
/// Seed a random value by passing some known argument `subject` to the runtime's
/// random source. Then, update the current `value` stored in this contract with the
/// new random value.
#[ink(message)]
pub fn update(&mut self, subject: [u8; 32]) -> Result<(), RandomReadErr> {
// Get the on-chain random seed
Expand Down

0 comments on commit d8ae73f

Please sign in to comment.