summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--randpkt_core/randpkt_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randpkt_core/randpkt_core.c b/randpkt_core/randpkt_core.c
index b29b18bccc..8e7bce1a69 100644
--- a/randpkt_core/randpkt_core.c
+++ b/randpkt_core/randpkt_core.c
@@ -723,7 +723,7 @@ int randpkt_parse_type(char *string)
/* Called with NULL, choose a random packet */
if (!string) {
- return examples[g_rand_int_range(pkt_rand, 0, num_entries)].produceable_type;
+ return examples[g_random_int_range(0, num_entries)].produceable_type;
}
for (i = 0; i < num_entries; i++) {