summaryrefslogtreecommitdiff
path: root/util/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/random.h')
-rw-r--r--util/random.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/util/random.h b/util/random.h
index a05a994a3d529..b257793a4449f 100644
--- a/util/random.h
+++ b/util/random.h
@@ -48,24 +48,13 @@
struct ub_randstate;
/**
- * Initialize the system randomness. Obtains entropy from the system
- * before a chroot or privilege makes it unavailable.
- * You do not have to call this, otherwise ub_initstate does so.
- * @param seed: seed value to create state (if no good entropy is found).
- */
-void ub_systemseed(unsigned int seed);
-
-/**
* Initialize a random generator state for use
- * @param seed: seed value to create state contents.
- * (ignored for arc4random).
* @param from: if not NULL, the seed is taken from this random structure.
* can be used to seed random states via a parent-random-state that
* is itself seeded with entropy.
* @return new state or NULL alloc failure.
*/
-struct ub_randstate* ub_initstate(unsigned int seed,
- struct ub_randstate* from);
+struct ub_randstate* ub_initstate(struct ub_randstate* from);
/**
* Generate next random number from the state passed along.