Skip to content

Commit

Permalink
Clarify rand-extension comment wrt subject argument
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfrevert committed Nov 23, 2021
1 parent 3fe0f2c commit f82538f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/rand-extension/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ mod rand_extension {
Self::new(Default::default())
}

/// Update the value from the runtimes random source.
/// 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
#[ink(message)]
pub fn update(&mut self, subject: [u8; 32]) -> Result<(), RandomReadErr> {
// Get the on-chain random seed
Expand Down

0 comments on commit f82538f

Please sign in to comment.