Commit 68a569c7 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Don't use sig_atomic_t.

Comment upon synchronization issue.
Fix gettimeofday usage.
parent c52dc059
......@@ -79,7 +79,12 @@ int lutil_entropy( char *buf, int nbytes )
* MD5 is a strong cryptographic hash, this should
* be fairly resistant to attack
static sig_atomic_t counter = 0;
* the caller may be provide external synchronization OR
* provide entropy (in buf) to ensure quality results.
static int counter = 0;
int n;
struct rdata_s {
......@@ -91,7 +96,7 @@ int lutil_entropy( char *buf, int nbytes )
pid_t pid;
struct timeval *tv;
struct timeval tv;
time_t time;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment