summaryrefslogtreecommitdiff
path: root/src/urandom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/urandom.c')
-rw-r--r--src/urandom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/urandom.c b/src/urandom.c
index 6734ac9..f8e5f90 100644
--- a/src/urandom.c
+++ b/src/urandom.c
@@ -1,7 +1,7 @@
/* mpc_urandom -- Generate a random complex number uniformly distributed in
the interval [0,1[.
-Copyright (C) 2008, 2009 INRIA
+Copyright (C) 2008, 2009, 2011 INRIA
This file is part of GNU MPC.
@@ -26,7 +26,7 @@ mpc_urandom (mpc_ptr a, gmp_randstate_t state)
{
int r, i;
- r = mpfr_urandomb (MPC_RE(a), state);
- i = mpfr_urandomb (MPC_IM(a), state);
+ r = mpfr_urandomb (mpc_realref(a), state);
+ i = mpfr_urandomb (mpc_imagref(a), state);
return r && i;
}