X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-multipath.c;h=7a8977927909b0276b2ecc3606ba1584465cf54f;hb=5de43a606c949dbb74272d5b09627ddd5f64b06b;hp=4ba36922e6e18e637804495a47f11d304c496d43;hpb=b0a17866c3145fd35e844e1b66c499c55ecf6f1d;p=sliver-openvswitch.git diff --git a/tests/test-multipath.c b/tests/test-multipath.c index 4ba36922e..7a8977927 100644 --- a/tests/test-multipath.c +++ b/tests/test-multipath.c @@ -26,7 +26,6 @@ #include "flow.h" #include "ofp-actions.h" -#include "random.h" #include "util.h" int @@ -39,7 +38,6 @@ main(int argc, char *argv[]) int n; set_program_name(argv[0]); - random_init(); if (argc != 2) { ovs_fatal(0, "usage: %s multipath_action", program_name); @@ -65,7 +63,7 @@ main(int argc, char *argv[]) struct flow_wildcards wc; struct flow flow; - random_bytes(&flow, sizeof flow); + flow_random_hash_fields(&flow); mp.max_link = n - 1; multipath_execute(&mp, &flow, &wc); @@ -130,7 +128,7 @@ main(int argc, char *argv[]) break; default: - NOT_REACHED(); + OVS_NOT_REACHED(); } }