mod_http_files: send valid ETag header
[prosody.git] / util / random.lua
index e4b4a700a89c15b2bb72397094ad1b7f0b16fd51..574e2e1cdf384cf7d893530fdcd97c80843aaba7 100644 (file)
@@ -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()