diff options
Diffstat (limited to 'Build/source/libs/gmp/gmp-src/mpz/random2.c')
-rw-r--r-- | Build/source/libs/gmp/gmp-src/mpz/random2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/libs/gmp/gmp-src/mpz/random2.c b/Build/source/libs/gmp/gmp-src/mpz/random2.c index 7f9e5f28e8b..2c72540c1c3 100644 --- a/Build/source/libs/gmp/gmp-src/mpz/random2.c +++ b/Build/source/libs/gmp/gmp-src/mpz/random2.c @@ -2,7 +2,8 @@ long runs of consecutive ones and zeros in the binary representation. Meant for testing of other MP routines. -Copyright 1991, 1993, 1994, 1996, 2001, 2012 Free Software Foundation, Inc. +Copyright 1991, 1993, 1994, 1996, 2001, 2012, 2015 Free Software +Foundation, Inc. This file is part of the GNU MP Library. @@ -30,7 +31,6 @@ You should have received copies of the GNU General Public License and the GNU Lesser General Public License along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */ -#include "gmp.h" #include "gmp-impl.h" void @@ -42,7 +42,7 @@ mpz_random2 (mpz_ptr x, mp_size_t size) abs_size = ABS (size); if (abs_size != 0) { - xp = MPZ_REALLOC (x, abs_size); + xp = MPZ_NEWALLOC (x, abs_size); mpn_random2 (xp, abs_size); } |