From: Karel Zak <kzak@redhat.com>
To: Davidlohr Bueso <dave@gnu.org>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: Re: [PATCH 1/3] lib: random utilities
Date: Tue, 10 Apr 2012 13:23:39 +0200 [thread overview]
Message-ID: <20120410112339.GL19784@x2.net.home> (raw)
In-Reply-To: <1333662724.2696.4.camel@offbook>
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@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2012-04-10 11:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 21:52 [PATCH 1/3] lib: random utilities Davidlohr Bueso
2012-04-10 10:38 ` Karel Zak
2012-04-10 11:23 ` Karel Zak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120410112339.GL19784@x2.net.home \
--to=kzak@redhat.com \
--cc=dave@gnu.org \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox