Fixed diffuse_field

This commit is contained in:
Acrimon 2019-08-05 18:49:02 +02:00
parent 393ac4610c
commit 8cb48804c2

View File

@ -56,7 +56,7 @@ fn truncate(x: u64) -> u32 {
pub fn diffused_field(seed: u32, amount: u32) -> Vec<u32> { pub fn diffused_field(seed: u32, amount: u32) -> Vec<u32> {
let mut field = Vec::new(); let mut field = Vec::new();
for i in 0..amount { for i in 0..=amount {
let n = truncate(diffuse(initial_expand(seed + i))); let n = truncate(diffuse(initial_expand(seed + i)));
field.push(n); field.push(n);
} }