Skip to content

Commit

Permalink
Return newseed at top of stack
Browse files Browse the repository at this point in the history
  • Loading branch information
amatgil committed Sep 26, 2024
1 parent ae25a56 commit dd5d717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,8 @@ impl Primitive {
let data = EcoVec::from_iter((0..elems).map(|_| rng.gen::<f64>()));
let next_seed = f64::from_bits(rng.gen::<u64>());

env.push(Array::new(shape, data))
env.push(Array::new(shape, data));
env.push(next_seed);
}
Primitive::Deal => {
let seed = env.pop(1)?.as_num(env, "Deal expects a number")?.to_bits();
Expand Down

0 comments on commit dd5d717

Please sign in to comment.