diff --git a/src/lib.rs b/src/lib.rs index 9baeff9..02f56d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -121,7 +121,7 @@ enum StateMachine { } impl StateMachine { - fn new(mut rng: impl ::rand_core::RngCore) -> Self { + pub fn new(mut rng: impl ::rand_core::RngCore) -> Self { match rng.next_u32() % 10 { 0 => StateMachine::Uwu { left: 3 }, 1 => StateMachine::CatgirlNonsense(CatgirlNonsenseMachine::new()), @@ -160,7 +160,7 @@ impl StateMachine { } } - fn generate(self, mut rng: impl ::rand_core::RngCore) -> (Self, char) { + pub fn generate(self, mut rng: impl ::rand_core::RngCore) -> (Self, char) { match self { StateMachine::Uwu { left } => match left { 3 => (StateMachine::Uwu { left: 2 }, 'u'),