git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bridge: Support changing port numbers.
[sliver-openvswitch.git]
/
tests
/
test-multipath.c
diff --git
a/tests/test-multipath.c
b/tests/test-multipath.c
index
4ba3692
..
bf879c7
100644
(file)
--- a/
tests/test-multipath.c
+++ b/
tests/test-multipath.c
@@
-26,7
+26,6
@@
#include "flow.h"
#include "ofp-actions.h"
#include "flow.h"
#include "ofp-actions.h"
-#include "random.h"
#include "util.h"
int
#include "util.h"
int
@@
-39,7
+38,6
@@
main(int argc, char *argv[])
int n;
set_program_name(argv[0]);
int n;
set_program_name(argv[0]);
- random_init();
if (argc != 2) {
ovs_fatal(0, "usage: %s multipath_action", program_name);
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;
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);
mp.max_link = n - 1;
multipath_execute(&mp, &flow, &wc);