Re: [PATCH] Improve mutt's random data generator.

Kurt Hackenberg <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Fri, Apr 24, 2026 at 06:54 +0800, Kevin J. McCarthy wrote:

>(replying to the sub-thread with Kurt lower): I realized the return 
>type is actually ssize_t, but I chose to work with size_t in this case 
>because of the:
>
>    if (res < length_requested)
>    {
>      length_requested -= res;
>      random_bytes += res;
>    }

I hope that code is not executed if the return value is -1.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.