Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
68a569c7
Commit
68a569c7
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Don't use sig_atomic_t.
Comment upon synchronization issue. Fix gettimeofday usage.
parent
c52dc059
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/liblutil/entropy.c
+7
-2
7 additions, 2 deletions
libraries/liblutil/entropy.c
with
7 additions
and
2 deletions
libraries/liblutil/entropy.c
+
7
−
2
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment