aboutsummaryrefslogtreecommitdiff
path: root/entropy.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-06 22:03:21 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-06 22:03:21 +0200
commit8b38567d751848d93b18e96de1cddde339ebdbf0 (patch)
tree1e23ab073ee2983b56db11724c5613526a226f70 /entropy.lua
parent798036e4452cbd1001fec48d27777dc697c42971 (diff)
downloadvicious-legacy-8b38567d751848d93b18e96de1cddde339ebdbf0.tar.xz
Added missing poolsize info to the README + minor change in fs.lua
Diffstat (limited to 'entropy.lua')
-rw-r--r--entropy.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/entropy.lua b/entropy.lua
index c9b798d..33da459 100644
--- a/entropy.lua
+++ b/entropy.lua
@@ -19,9 +19,7 @@ module("vicious.entropy")
function worker(format, poolsize)
-- Don't waste time opening the poolsize, Linux 2.6 has a default
-- entropy pool of 4096-bits, if needed specify otherwise
- if poolsize == nil then
- poolsize = 4096
- end
+ if poolsize == nil then poolsize = 4096 end
-- Get available entropy
local f = io.open("/proc/sys/kernel/random/entropy_avail")