aboutsummaryrefslogtreecommitdiff
path: root/entropy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'entropy.lua')
-rw-r--r--entropy.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/entropy.lua b/entropy.lua
index ca7ee85..d36a8a9 100644
--- a/entropy.lua
+++ b/entropy.lua
@@ -21,13 +21,13 @@ local function worker(format, poolsize)
-- Get available entropy
local f = io.open("/proc/sys/kernel/random/entropy_avail")
- local ent_avail = f:read("*line")
+ local ent = f:read("*line")
f:close()
-- Calculate percentage
- local ent_avail_percent = math.ceil(ent_avail * 100 / poolsize)
+ local ent_percent = math.ceil(ent * 100 / poolsize)
- return {ent_avail, ent_avail_percent}
+ return {ent, ent_percent}
end
-- }}}