When copying a random state with MAKE-RANDOM-STATE, the data of the Mersenne-Twister has to be duplicated as well.

This commit is contained in:
jgarcia 2007-05-21 21:33:52 +00:00
parent f8765e14f1
commit 0ff1e848c2

View file

@ -179,7 +179,7 @@ ecl_make_random_state(cl_object rs)
if (type_of(rs) != t_random) {
FEwrong_type_argument(@'random-state', rs);
}
z->random.value = rs->random.value;
z->random.value = cl_copy_seq(rs->random.value);
}
return(z);
}