projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_http_files: send valid ETag header
[prosody.git]
/
util
/
random.lua
diff --git
a/util/random.lua
b/util/random.lua
index e4b4a700a89c15b2bb72397094ad1b7f0b16fd51..574e2e1cdf384cf7d893530fdcd97c80843aaba7 100644
(file)
--- a/
util/random.lua
+++ b/
util/random.lua
@@
-6,6
+6,9
@@
-- COPYING file in the source package for more information.
--
+local ok, crand = pcall(require, "util.crand");
+if ok then return crand; end
+
local urandom, urandom_err = io.open("/dev/urandom", "r");
local function seed()