about summary refs log tree commit diff
path: root/src/level_gen/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/level_gen/util.rs')
-rw-r--r--src/level_gen/util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/level_gen/util.rs b/src/level_gen/util.rs
index 89a4a6a882da..629292c430fa 100644
--- a/src/level_gen/util.rs
+++ b/src/level_gen/util.rs
@@ -13,6 +13,8 @@ pub fn falses(dims: &Dimensions) -> Vec<Vec<bool>> {
     ret
 }
 
+/// Randomly initialize a 2-dimensional boolean vector of the given
+/// `Dimensions`, using the given random number generator and alive chance
 pub fn rand_initialize<R: Rng + ?Sized>(
     dims: &Dimensions,
     rng: &mut R,