summaryrefslogtreecommitdiff
path: root/random/rndunix.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-15random: Fix possible AIX problem with sysconf in rndunix.Werner Koch1-3/+12
* random/rndunix.c [HAVE_STDINT_H]: Include stdint.h. (start_gatherer): Detect misbehaving sysconf. -- See GnuPG-bug-id: 1778 for the reason of this patch. There is no concrete bug report but this change should not harm. Signed-off-by: Werner Koch <wk@gnupg.org>
2015-01-05random: Silent warning under NetBSD using rndunixWerner Koch1-1/+18
* random/rndunix.c (STDERR_FILENO): Define if needed. (start_gatherer): Re-open standard descriptors. Fix an unsigned/signed pointer warning. -- GnuPG-bug-id: 1702
2011-09-08Fix a problem with select and high fds.Werner Koch1-1/+2
If on systems where the maximum number of fds may be dynamically configured to a value of FD_MAXSIZE or higher and the RNG is first used after more than FD_SETSIZE-1 descriptors are in use, we disable the progress messages from the RNG. A better solution would be too use poll but that requires more tests. The same problem exists in rndunix.c - however this rng is only used on old Unices and I assume that they don't feature dynamically configured maximum fd sizes.
2011-02-04Nuked almost all trailing whitespace.Werner Koch1-12/+12
Check and install the standard git pre-commit hook.
2010-04-12Applied spelling fixes and more verbose test diagnositcs by Brad Hards.Werner Koch1-1/+1
2009-07-09[random/ChangeLog]Werner Koch1-7/+34
* rndlinux.c (_gcry_rndlinux_gather_random): Print real values for the progess function and call it before blocking. Suggested by Christian Grothoff. * rndunix.c (slow_poll): Add similar, but not yet functional, code. SCALAR(0x81980e8) Copyright 2008, 2009 Free Software Foundation, Inc. [tests/ChangeLog] * benchmark.c (progress_cb): New. (main): Add option --progress.
2008-08-29Changed the way the FIPS RNG is seeded.Werner Koch1-4/+1
FIPS cleanups. Documentation upodates.
2008-08-04Clarify license entry.Werner Koch1-2/+2
Small indentation change.
2008-07-05Moved random stuff into its own directory.Werner Koch1-0/+886