mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Minor cleanup.
This commit is contained in:
parent
3d064b73c5
commit
d0ad0cf228
@ -11,7 +11,7 @@
|
||||
#include <lutil.h>
|
||||
|
||||
/*
|
||||
* lutil_entropy() provides nbyptes of entropy in buf.
|
||||
* lutil_entropy() provides nbytes of entropy in buf.
|
||||
* Quality offerred is suitable for one-time uses, such as "once" keys.
|
||||
*/
|
||||
int lutil_entropy( char *buf, int nbytes )
|
||||
@ -31,6 +31,7 @@ int lutil_entropy( char *buf, int nbytes )
|
||||
rc = read( fd, buf, nbytes );
|
||||
close(fd);
|
||||
|
||||
/* should return nbytes */
|
||||
if( rc < nbytes ) return -1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user