about summary refs log tree commit diff
path: root/editor/pammixmulti.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/pammixmulti.c')
-rw-r--r--editor/pammixmulti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/pammixmulti.c b/editor/pammixmulti.c
index f5012d7a..d303c3de 100644
--- a/editor/pammixmulti.c
+++ b/editor/pammixmulti.c
@@ -285,8 +285,8 @@ randomNormal2(double * const r1P,
     double u1, u2;
 
     do {
-        u1 = drand48();
-        u2 = drand48();
+        u1 = (double)rand() / RAND_MAX;
+        u2 = (double)rand() / RAND_MAX;
     }
     while (u1 <= DBL_EPSILON);