mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
#include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy().
This commit is contained in:
parent
b10daf623f
commit
8efd391832
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include "back-bdb.h"
|
||||
#include "external.h"
|
||||
#include "lber_pvt.h"
|
||||
#include "lutil.h"
|
||||
|
||||
|
||||
/* Congestion avoidance code
|
||||
|
|
@ -25,7 +26,7 @@ bdb_trans_backoff( int num_retries )
|
|||
unsigned long max_key = -1;
|
||||
struct timeval timeout;
|
||||
|
||||
lutil_entropy( &key, sizeof( unsigned long ));
|
||||
lutil_entropy( (unsigned char *) &key, sizeof( unsigned long ));
|
||||
|
||||
for ( i = 0; i < num_retries; i++ ) {
|
||||
if ( i >= 5 ) break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue