Changeset

2647:d8487d5bd4fb

mod_http_upload: Fix to call random bytes function instead of the module
author Kim Alvefur <zash@zash.se>
date Sun, 26 Mar 2017 21:09:02 +0200
parents 2646:45ef16ebe565
children 2648:4c92e2e897c8
files mod_http_upload/mod_http_upload.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Fri Mar 24 01:07:54 2017 +0100
+++ b/mod_http_upload/mod_http_upload.lua	Sun Mar 26 21:09:02 2017 +0200
@@ -22,7 +22,7 @@
 	local b64 = require "util.encodings".base64;
 	local b64url = { ['+'] = '-', ['/'] = '_', ['='] = '' };
 	function uuid()
-		return (b64(random(8)):gsub("[+/=]", b64url));
+		return (b64(random.bytes(8)):gsub("[+/=]", b64url));
 	end
 end