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