bubaflub / parrot-gmp

GMP bindings for Parrot
http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/bubaflub/1
Artistic License 2.0
6 stars 1 forks source link

Add gmp_randinit* and gmp_randseed* functions #18

Closed bubaflub closed 13 years ago

bubaflub commented 13 years ago

mpz_urandomb, mpz_urandomm, mpz_rrandomb, mpz_random (deprecated), and mpz_random2 (deprecated) all require the random state to be initialized. This requires a new struct, gmp_randstate_t and a call to one of the gmp_randinit* or gmp_randseed* functions to pick both the seed and the algorithm.

bubaflub commented 13 years ago

Commit 1592c44cfa0dc57 has these function bindings in GMP::Raw.

bubaflub commented 13 years ago

Commit 0dc2da0 added src/GMP/Random.winxed generated from gmpdoc2winxed.pl. Commit 198f579 has the first test for these functions.