Skip to content
Snippets Groups Projects
Commit 8efd3918 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

#include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy().

parent b10daf62
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment