version 1.1, 2000/09/09 14:12:16 |
version 1.1.1.2, 2003/08/25 16:06:00 |
|
|
/* gmp_randseed_ui (state, seed) -- Set initial seed SEED in random |
/* gmp_randseed_ui (state, seed) -- Set initial seed SEED in random |
state STATE. |
state STATE. |
|
|
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 24 MA 02111-1307, USA. */ |
|
Line 24 MA 02111-1307, USA. */ |
|
#include "gmp-impl.h" |
#include "gmp-impl.h" |
|
|
void |
void |
#if __STDC__ |
|
gmp_randseed_ui (gmp_randstate_t rstate, |
gmp_randseed_ui (gmp_randstate_t rstate, |
unsigned long int seed) |
unsigned long int seed) |
#else |
|
gmp_randseed_ui (rstate, seed) |
|
gmp_randstate_t rstate; |
|
mpz_t seed; |
|
#endif |
|
{ |
{ |
mpz_set_ui (rstate->seed, seed); |
mpz_set_ui (rstate->_mp_seed, seed); |
} |
} |