Skip to content

Commit

Permalink
iptrtpproxy: update to use kam_rand()
Browse files Browse the repository at this point in the history
  • Loading branch information
sjthomason committed Jul 7, 2016
1 parent 25cf7d6 commit 3054a82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/iptrtpproxy/iptrtpproxy.c
Expand Up @@ -48,6 +48,7 @@
#include "../../select_buf.h"
#include "../../script_cb.h"
#include "../../cfg_parser.h"
#include "../../rand/kam_rand.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
Expand Down Expand Up @@ -1438,7 +1439,7 @@ ERR("RTPPROXY_DEBUG: session_count: %d, reuse_existing_count: %d\n", global_sdp_

} else if (ok_stamp == 0) {
/* not yet acquired, highest */
w = 100000000 + (rand() & 0xFFFF); /* randomize not yet asked or being hartbeated */
w = 100000000 + (kam_rand() & 0xFFFF); /* randomize not yet asked or being hartbeated */
} else {
/* middle */
w = 1000;
Expand Down

0 comments on commit 3054a82

Please sign in to comment.