hide get_next back
authoralfadur
Mon, 29 Oct 2018 23:40:17 +0300
changeset 14050 259175ab7e8c
parent 14049 0f517cbfe16d
child 14051 2ebd505e62c1
child 14071 4b40bdd214df
hide get_next back
rust/lfprng/src/lib.rs
--- a/rust/lfprng/src/lib.rs	Mon Oct 29 23:38:08 2018 +0300
+++ b/rust/lfprng/src/lib.rs	Mon Oct 29 23:40:17 2018 +0300
@@ -24,7 +24,7 @@
     }
 
     #[inline]
-    pub fn get_next(&mut self) -> u32 {
+    fn get_next(&mut self) -> u32 {
         self.index = (self.index + 1) & 0x3f;
         self.circular_buffer[self.index] = (self.circular_buffer[(self.index + 40) & 0x3f]
             + self.circular_buffer[(self.index + 9) & 0x3f])