[PATCH] Custom random number generation function.
Laurent Fousse
laurent at komite.net
Sat Aug 28 12:50:23 CEST 2010
Hello,
I implemented a custom random number generation function. This lets
you define a callback function to fill a buffer with random bytes,
that will in turn be used by the actual generation functions like
mpz_urandomb. A typical use-case is just reading bytes from
/dev/urandom, if your system is nice enough to provide such a service.
Laurent.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: randcustom.patch
Type: text/x-diff
Size: 6398 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-devel/attachments/20100828/69fd0ffc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_custom.c
Type: text/x-csrc
Size: 562 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-devel/attachments/20100828/69fd0ffc/attachment-0001.bin>
More information about the gmp-devel
mailing list