Commit 00f0b1e2 authored by Dafydd Harries's avatar Dafydd Harries
Browse files

nice_rng_glib_new_predictable

darcs-hash:20070205171124-c9803-51fc2431b9eaf7f6b4b61223da4d481f168c9567.gz
parent 91b7d85f
......@@ -29,6 +29,7 @@ T nice_rng_generate_bytes
T nice_rng_generate_bytes_print
T nice_rng_generate_int
T nice_rng_glib_new
T nice_rng_glib_new_predictable
T nice_rng_new
T nice_udp_bsd_socket_factory_init
T nice_udp_fake_socket_factory_init
......
......@@ -41,3 +41,13 @@ nice_rng_glib_new (void)
return ret;
}
NiceRNG *
nice_rng_glib_new_predictable (void)
{
NiceRNG *rng;
rng = nice_rng_glib_new ();
rng->seed (rng, 0);
return rng;
}
......@@ -11,6 +11,9 @@ G_BEGIN_DECLS
NiceRNG *
nice_rng_glib_new (void);
NiceRNG *
nice_rng_glib_new_predictable (void);
G_END_DECLS
#endif /* _RANDOM_GLIB_H */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment