diff --git a/src/common.rs b/src/common.rs index 09c7b444324f49055bac3e5a20295aa631e94054..f2b5a9841d9ee1e0932f4ff1613058e1e2333993 100644 --- a/src/common.rs +++ b/src/common.rs @@ -89,13 +89,13 @@ pub trait MonoContext { fn new_component(&mut self, moved_keys: HashSet, init_state: Self::S); fn new_channel(&mut self) -> [Key; 2]; - fn new_random(&self) -> u64; + fn new_random(&mut self) -> u64; } pub trait PolyContext { type D: ProtocolDescription; - fn is_firing(&self, ekey: Key) -> Option; - fn read_msg(&self, ekey: Key) -> Option<&Payload>; + fn is_firing(&mut self, ekey: Key) -> Option; + fn read_msg(&mut self, ekey: Key) -> Option<&Payload>; } ///////////////////// IMPL /////////////////////