summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott <scott@paragonie.com>2015-09-21 11:51:16 -0400
committerAnatol Belski <ab@php.net>2015-09-29 09:14:29 +0200
commit46aa628605341d879a685fe683114f8b22d0861f (patch)
tree62f370217138050ee31c9ff31ab2e7f7cfbedbaa
parent6554f721f770c99037f07d465a7d610568576ce4 (diff)
downloadphp-git-46aa628605341d879a685fe683114f8b22d0861f.tar.gz
Different error message if makedev check fails
-rw-r--r--ext/standard/random.c2
1 files changed, 1 insertions, 1 deletions
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