#35510 [Bgs->Opn]: add gmp_nextprime function to ext/gmp
ID: 35510
Updated by: sniper@php.net
Reported By: ants dot aasma at gmail dot com
-Status: Bogus
+Status: Open
-Bug Type: *Math Functions
+Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 5.1.1
New Comment:
reclassified where this belongs.
Previous Comments:
------------------------------------------------------------------------
[2005-12-01 20:28:56] tony2001@php.net
Do not use the bug system for posting patches that do not fix a bug.
Use the maillist (internals@lists.php.net).
------------------------------------------------------------------------
[2005-12-01 20:13:44] ants dot aasma at gmail dot com
Description:
------------
Add the gmp_nextprime function to ext/gmp. I need it for
my cryptographically secure random number generator and
it's probably pretty useful to others too (espescially
because I can then release my code properly :).
http://www.hot.ee/stepz/Math_Random/gmp.patch
is the
(really simple) patch.
Reproduce code:
---------------
if (function_exists("gmp_nextprime")) {
echo gmp_strval(gmp_nextprime(1000));
} else {
echo "No function";
}
Expected result:
----------------
1009
Actual result:
--------------
No function
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35510&edit=1
Thread (5 messages)