diff options
Diffstat (limited to 'mpfr/tests/trandom.c')
-rw-r--r-- | mpfr/tests/trandom.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/mpfr/tests/trandom.c b/mpfr/tests/trandom.c index 7229bd46f..cf9c05a9b 100644 --- a/mpfr/tests/trandom.c +++ b/mpfr/tests/trandom.c @@ -1,20 +1,20 @@ /* Test file for the various mpfr_random fonctions. -Copyright (C) 1999-2000 Free Software Foundation. +Copyright (C) 1999, 2000, 2001 Free Software Foundation. This file is part of the MPFR Library. The MPFR Library is free software; you can redistribute it and/or modify -it under the terms of the GNU Library General Public License as published by -the Free Software Foundation; either version 2 of the License, or (at your +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The MPFR Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -You should have received a copy of the GNU Library General Public License +You should have received a copy of the GNU Lesser General Public License along with the MPFR Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -22,6 +22,7 @@ MA 02111-1307, USA. */ #include <stdio.h> #include <stdlib.h> #include <math.h> +#include <time.h> #include "gmp.h" #include "mpfr.h" #include "mpfr-impl.h" @@ -164,7 +165,8 @@ void test_urandomb (unsigned long nbtests, unsigned long prec, int verbose) return; } -int main (int argc, char **argv) +int +main (int argc, char *argv[]) { unsigned long nbtests, prec; int verbose = 0; @@ -179,4 +181,3 @@ int main (int argc, char **argv) return 0; } - |