Use a single set of FDs for all random plugin RNG instances

This commit is contained in:
Martin Willi
2012-03-20 17:31:40 +01:00
parent eff331f799
commit 35852af7b1
3 changed files with 89 additions and 36 deletions
@@ -39,4 +39,14 @@ struct random_plugin_t {
plugin_t plugin;
};
/**
* Get the /dev/random file descriptor
*/
int random_plugin_get_dev_random();
/**
* Get the /dev/urandom file descriptor
*/
int random_plugin_get_dev_urandom();
#endif /** RANDOM_PLUGIN_H_ @}*/