summaryrefslogtreecommitdiff
path: root/urandom.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-01-15 04:21:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-01-15 04:21:01 +0000
commitb4af9798ae03d2d66c290af0e78e4095ec691380 (patch)
tree2baec66a11158c526f63faba4afd570003cdd789 /urandom.c
parent4b466454f786410dbe25a7407edb66b653500dcb (diff)
downloadmpfr-b4af9798ae03d2d66c290af0e78e4095ec691380.tar.gz
urandom.c: added a FIXME so that it is not forgotten.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6662 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'urandom.c')
-rw-r--r--urandom.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/urandom.c b/urandom.c
index e595257e5..7e0ef7936 100644
--- a/urandom.c
+++ b/urandom.c
@@ -26,6 +26,14 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
+/* FIXME.
+ * - mpfr_nextabove leads to an assertion failure in reduced exponent range:
+ * next.c:90: MPFR assertion failed: !mpfr_set_exp ((x), (exp + 1))
+ * - The algorithm itself looks wrong (the bits should be determined MSB
+ * first in fixed point, so that there's no reason to determine the
+ * rounding bit first). Please include a proof.
+ */
+
int
mpfr_urandom (mpfr_ptr rop, gmp_randstate_t rstate, mpfr_rnd_t rnd_mode)
{