Skip to content

Commit 1b39d5e

Browse files
committed
Remove exception in Mt19937::generate()
This implementation is shared across all native engines. Thus the same reasoning as the previous commits applies, except that the User engine does not use this method. Thus is only applicable to the Secure engine, which is the only fallible native engine.
1 parent 21e1a0d commit 1b39d5e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/random/engine_mt19937.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ PHP_METHOD(Random_Engine_Mt19937, generate)
302302
generated = engine->algo->generate(engine->status);
303303
size = engine->status->last_generated_size;
304304
if (EG(exception)) {
305-
zend_throw_exception(spl_ce_RuntimeException, "Random number generation failed", 0);
306305
RETURN_THROWS();
307306
}
308307

0 commit comments

Comments
 (0)