Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
68a569c7
Commit
68a569c7
authored
Oct 27, 1999
by
Kurt Zeilenga
Browse files
Don't use sig_atomic_t.
Comment upon synchronization issue. Fix gettimeofday usage.
parent
c52dc059
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblutil/entropy.c
View file @
68a569c7
...
...
@@ -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
;
#ifdef HAVE_GETTIMEOFDAY
struct
timeval
*
tv
;
struct
timeval
tv
;
#else
time_t
time
;
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment