From 46aa628605341d879a685fe683114f8b22d0861f Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 21 Sep 2015 11:51:16 -0400 Subject: [PATCH] Different error message if makedev check fails --- ext/standard/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/random.c b/ext/standard/random.c index 6bee9d31d5..cad4d0acbf 100644 --- a/ext/standard/random.c +++ b/ext/standard/random.c @@ -149,7 +149,7 @@ static int php_random_bytes(void *bytes, size_t size) // Make sure that /dev/urandom is the proper urandom device on Linux if (st.st_rdev != makedev(1, 9)) { close(fd); - zend_throw_exception(zend_ce_exception, "Error reading from source device", 0); + zend_throw_exception(zend_ce_exception, "Entropy source device is invalid", 0); return FAILURE; } #endif -- 2.50.0