]> granicus.if.org Git - php/commitdiff
Fix build with gmp < 4.2
authorRemi Collet <remi@php.net>
Thu, 13 Nov 2014 12:08:00 +0000 (13:08 +0100)
committerRemi Collet <remi@php.net>
Thu, 13 Nov 2014 12:08:00 +0000 (13:08 +0100)
See 3d6d863ccbd10d212352462b587ae1573af4f1d1
and acd7fcf55f81955e4837c750a5e45f83d3c55ba2

ext/gmp/gmp.c

index e9c1ad34164ae946ba88dc5061225a8db6a97d99..de61f1ca5f396ca2d1c6362d5f2fa06e63d8e3fe 100644 (file)
@@ -1776,7 +1776,7 @@ static void gmp_init_random(TSRMLS_D)
 #if GMP_42_OR_NEWER
                gmp_randinit_mt(GMPG(rand_state));
 #else
-               gmp_randinit_lc_2exp(GMPG(rand_state), 32L);
+               gmp_randinit_lc_2exp_size(GMPG(rand_state), 32L);
 #endif
                /* Seed */
                gmp_randseed_ui(GMPG(rand_state), GENERATE_SEED());