rust/lib-hedgewars-engine/src/world.rs
changeset 14272 3152d9fdb499
parent 14166 7d3b94cdc3c4
child 14295 fd8e0e52d5bd
--- a/rust/lib-hedgewars-engine/src/world.rs	Thu Nov 22 10:58:55 2018 +0100
+++ b/rust/lib-hedgewars-engine/src/world.rs	Thu Nov 22 13:39:51 2018 +0100
@@ -19,6 +19,10 @@
         }
     }
 
+    pub fn set_seed(&mut self, seed: &[u8]) {
+        self.random_numbers_gen = LaggedFibonacciPRNG::new(seed);
+    }
+
     pub fn preview(&self) -> &Land2D<u8> {
         &self.preview
     }