[Zrouter-src] ZRouter.org: push to zconf++ zconf++/zrouterhttp.cc
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Mon Jan 23 17:24:01 UTC 2012
details: /rev/df20c5ba650c
changeset: 46:df20c5ba650c
user: "Nicolai Petri <nicolai at petri.dk>"
date: Mon Jan 23 18:20:09 2012 +0100
description:
Init random()
diffstat:
zconf++/zrouterhttp.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 0bba7235e8be -r df20c5ba650c zconf++/zrouterhttp.cc
--- a/zconf++/zrouterhttp.cc Thu Jan 19 01:33:37 2012 +0100
+++ b/zconf++/zrouterhttp.cc Mon Jan 23 18:20:09 2012 +0100
@@ -22,6 +22,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+extern "C" {
+ #include <stdlib.h>
+}
#include <boost/asio.hpp>
#include <boost/bind.hpp>
@@ -62,6 +65,8 @@
int main(int argc, char **argv) {
+ // Init random seed stuff
+ srandomdev();
// Make single IO handler
boost::asio::io_service io;
More information about the Zrouter-src
mailing list