Software /
code /
prosody-modules
Diff
mod_http_upload/mod_http_upload.lua @ 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 |
parent | 2646:45ef16ebe565 |
child | 2648:4c92e2e897c8 |
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