X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fexpr-evl.c;h=d3e02ea1dcbcf6d78270c15ca2fface7a15511ea;hb=d8528fd919d1cebe194121ba267faa0f4ee48c94;hp=8628cfd3c3b5c776aca4146b8c4497045df8c5c0;hpb=f9ce8d75ae81553d9aec05351cb2d12d0df33e5e;p=pspp diff --git a/src/expr-evl.c b/src/expr-evl.c index 8628cfd3c3..d3e02ea1dc 100644 --- a/src/expr-evl.c +++ b/src/expr-evl.c @@ -34,6 +34,7 @@ #include "expr.h" #include "exprP.h" #include "error.h" +#include #include #include #include @@ -46,7 +47,7 @@ #include "misc.h" #include "moments.h" #include "pool.h" -#include "random.h" +#include "settings.h" #include "str.h" #include "var.h" #include "vfm.h" @@ -1122,11 +1123,11 @@ expr_evaluate (const struct expression *e, const struct ccase *c, int case_idx, break; case OP_NORMAL: if (sp->f != SYSMIS) - sp->f *= rng_get_double_normal (pspp_rng ()); + sp->f = gsl_ran_gaussian (get_rng (), sp->f); break; case OP_UNIFORM: if (sp->f != SYSMIS) - sp->f *= rng_get_double (pspp_rng ()); + sp->f *= gsl_rng_uniform (get_rng ()); break; case OP_SYSMIS: sp->f = sp->f == SYSMIS || !finite (sp->f);