version 1.1.1.2, 2000/12/01 05:45:13 |
version 1.1.1.3, 2003/08/25 16:06:34 |
|
|
integer in the range 0 to N-1, using STATE as the random state |
integer in the range 0 to N-1, using STATE as the random state |
previously initialized by a call to gmp_randinit(). |
previously initialized by a call to gmp_randinit(). |
|
|
Copyright (C) 2000 Free Software Foundation, Inc. |
Copyright 2000 Free Software Foundation, Inc. |
|
|
This file is part of the GNU MP Library. |
This file is part of the GNU MP Library. |
|
|
Line 26 MA 02111-1307, USA. */ |
|
Line 26 MA 02111-1307, USA. */ |
|
#include "longlong.h" |
#include "longlong.h" |
|
|
void |
void |
#if __STDC__ |
mpz_urandomm (mpz_ptr rop, gmp_randstate_t rstate, mpz_srcptr n) |
mpz_urandomm (mpz_t rop, gmp_randstate_t rstate, mpz_t n) |
|
#else |
|
mpz_urandomm (rop, rstate, n) |
|
mpz_t rop; |
|
gmp_randstate_t rstate; |
|
mpz_t n; |
|
#endif |
|
{ |
{ |
mpz_t t, p, m; |
mpz_t t, p, m; |
mp_ptr tp; |
mp_ptr tp; |