|
From: | Paul Eggert |
Subject: | Re: bug#57129: 29.0.50; Improve behavior of conditionals in Eshell |
Date: | Tue, 16 Aug 2022 10:25:57 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 8/16/22 09:25, Eli Zaretskii wrote:
why does this work differently on different platforms?
Platforms that lack clock_gettime and CLOCK_MONOTONIC fall back on a deterministic algorithm. Presumably MS-DOS one of the few such platforms, which is why the problem is observed only on MS-DOS.
How about something like the attached patch to Gnulib's lib/tempname.c? If I understand things correctly this should make the names random enough on MS-DOS, though Emacs itself still needs a patch as I mentioned a few minutes ago.
If this patch isn't good enough for MS-DOS, what sort of random bits are easily available on that platform? We don't need anything cryptographically secure; a higher-res clock should suffice.
rand.diff
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |