|
|
|
Re: [PATCH 1/3] lib: random utilities | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Thu, Apr 05, 2012 at 11:52:04PM +0200, Davidlohr Bueso wrote:
> include/randutils.h | 19 +++++++++
> lib/Makefile.am | 2 +
> lib/randutils.c | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 125 insertions(+), 0 deletions(-)
> create mode 100644 include/randutils.h
> create mode 100644 lib/randutils.c
Applied with some changes, thanks.
> +++ b/include/randutils.h
> +#if defined(__linux__) && defined(__NR_gettid) && defined(HAVE_JRAND48)
> +#define DO_JRAND_MIX
> +static unsigned short jrand_seed[3];
> +#endif
- add static buffer to header file does not make sense
- TLS (thread local storage) is necessary there if you want to use
the code in a shared library (libuuid).
Karel
--
Karel Zak <kzak@xxxxxxxxxx>
http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]