aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/random.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/random.lua b/util/random.lua
index 8ae06b49..51f2747d 100644
--- a/util/random.lua
+++ b/util/random.lua
@@ -14,7 +14,7 @@ local urandom, urandom_err = io.open("/dev/urandom", "r");
local function bytes(n)
local data, err = urandom:read(n);
if not data then
- error("Unable to retrieve data from secure random number generator (/dev/urandom): "..err);
+ error("Unable to retrieve data from secure random number generator (/dev/urandom): "..tostring(err));
end
return data;
end