From a3ea469ed9ebeab2c4db54712f0b8ace3f28e15f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 2 Dec 2021 01:14:55 +0100 Subject: util.id: Adjust entropy levels, with rationales Modules using ids for logging should not need the now pretty large medium one. --- net/server_epoll.lua | 2 +- net/unbound.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/server_epoll.lua b/net/server_epoll.lua index f61c204c..faa6a1b5 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -26,7 +26,7 @@ local createtable = require "util.table".create; local inet = require "util.net"; local inet_pton = inet.pton; local _SOCKETINVALID = socket._SOCKETINVALID or -1; -local new_id = require "util.id".medium; +local new_id = require "util.id".short; local xpcall = require "util.xpcall".xpcall; local poller = require "util.poll" diff --git a/net/unbound.lua b/net/unbound.lua index 22b0614b..4a6f0241 100644 --- a/net/unbound.lua +++ b/net/unbound.lua @@ -18,7 +18,7 @@ local log = logger.init("unbound"); local net_server = require "net.server"; local libunbound = require"lunbound"; local promise = require"util.promise"; -local new_id = require "util.id".medium; +local new_id = require "util.id".short; local gettime = require"socket".gettime; local dns_utils = require"util.dns"; -- cgit v1.2.3