about summary refs log tree commit diff
path: root/src/rt/rust_rng.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_rng.h')
-rw-r--r--src/rt/rust_rng.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rt/rust_rng.h b/src/rt/rust_rng.h
index 2f1e680623f..3879b1138fa 100644
--- a/src/rt/rust_rng.h
+++ b/src/rt/rust_rng.h
@@ -14,7 +14,6 @@
 #include "rand.h"
 
 class rust_kernel;
-struct rust_vec_box;
 
 // Initialization helpers for ISAAC RNG
 
@@ -23,8 +22,11 @@ struct rust_rng {
     bool reseedable;
 };
 
-void rng_gen_seed(rust_kernel* kernel, uint8_t* dest, size_t size);
-void rng_init(rust_kernel *kernel, rust_rng *rng, rust_vec_box* user_seed);
+size_t rng_seed_size();
+void rng_gen_seed(rust_kernel* kernel,
+                  uint8_t* dest, size_t size);
+void rng_init(rust_kernel *kernel, rust_rng *rng,
+              uint8_t *user_seed, size_t seed_len);
 uint32_t rng_gen_u32(rust_kernel *kernel, rust_rng *rng);
 
 //