|
From: | Max Nikulin |
Subject: | Re: [PATCH] Re: [BUG] org-attach-id-ts-folder-format fails on customized IDs [9.6 (9.6-??-2e9999783)] |
Date: | Wed, 3 Aug 2022 23:03:20 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 23/07/2022 12:22, Ihor Radchenko wrote:
Tentative patch is attached.
+ (if (< (length id) 3) + (org-attach-id-uuid-folder-format (md5 id))
Ihor, I am afraid of collisions due to short input to md5. Long hash value gives false impression of high entropy but actually there are not so many variants for 1 or 2 characters strings. Either there is no point in making long name from short id or random string of appropriate length should be used instead.
[Prev in Thread] | Current Thread | [Next in Thread] |