[PATCH v2 2/2] Add single-threaded fast path to rand()
Carlos O'Donell
carlos@redhat.com
Wed Dec 13 17:48:31 GMT 2023
On 12/12/23 15:47, Paul Eggert wrote:
> Since random.c is sort-of shared with gnulib, would there be any harm
> in using the user-visible "#include <sys/single_threaded.h>" and
> __libc_single_threaded instead? That would lessen the differences
> between the two source files. (I don't know why glibc code sometimes
> includes <sys/single_threaded.h> and sometimes <single-thread.h>.)
Paul,
Please update glibc/SHARED-FILES if random.c is being used by gnulib.
We actively use SHARED-FILES to ensure that gnulib code changes have copyright
assignment to the FSF.
This is explained to new contributors via:
https://sourceware.org/glibc/wiki/Contribution%20checklist#Copyright_FSF_or_disclaimer
Please also note that it is not clear to me that all of the copyright in random.c
is assigned to the FSF given the origins of that code.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list