projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flow: Delete unused FWW_VLAN_TCI bit.
[openvswitch]
/
lib
/
random.c
diff --git
a/lib/random.c
b/lib/random.c
index 7f892514ce09534842984cf8856698be06d7162c..6b02446014e1f71eb778f3c047fe43ee563ee6f2 100644
(file)
--- a/
lib/random.c
+++ b/
lib/random.c
@@
-17,6
+17,7
@@
#include <config.h>
#include "random.h"
+#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/time.h>
@@
-56,6
+57,13
@@
random_init(void)
}
}
+void
+random_set_seed(uint32_t seed_)
+{
+ assert(seed_);
+ seed = seed_;
+}
+
void
random_bytes(void *p_, size_t n)
{