Diff

plugins/proxy65.lua @ 457:73d4eb93657b

Update to use util.id for random ids instead of counters (thanks Zash)
author Matthew Wild <mwild1@gmail.com>
date Thu, 16 Mar 2023 11:41:52 +0000
parent 395:e86144a4eaa1
child 490:6b2f31da9610
line wrap: on
line diff
--- a/plugins/proxy65.lua	Fri Mar 03 12:10:54 2023 +0000
+++ b/plugins/proxy65.lua	Thu Mar 16 11:41:52 2023 +0000
@@ -1,5 +1,5 @@
 local verse =	require "verse";
-local uuid = require "util.uuid";
+local new_id = require "util.id".short;
 local sha1 = require "util.hashes".sha1;
 
 local proxy65_mt = {};
@@ -92,7 +92,7 @@
 function proxy65_mt:new(target_jid, proxies)
 	local conn = verse.new(nil, {
 		target_jid = target_jid;
-		bytestream_sid = uuid.generate();
+		bytestream_sid = new_id();
 	});
 
 	local request = verse.iq{type="set", to = target_jid}