Skip to content

Commit ca10d6c

Browse files
committed
Fix error message in Randomizer::getFloat()
1 parent 786cfaf commit ca10d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/random/randomizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ PHP_METHOD(Random_Randomizer, getFloat)
203203
ZEND_PARSE_PARAMETERS_END();
204204

205205
#ifndef __STDC_IEC_559__
206-
zend_throw_exception(random_ce_Random_RandomException, "The nextFloat() method requires the underlying 'double' representation to be IEEE-754.", 0);
206+
zend_throw_exception(random_ce_Random_RandomException, "The getFloat() method requires the underlying 'double' representation to be IEEE-754.", 0);
207207
RETURN_THROWS();
208208
#endif
209209

0 commit comments

Comments
 (0)