From 1e571c37ecdf9b71a95eaffbe8493aac7bb3a424 Mon Sep 17 00:00:00 2001 From: Jeff Donahue Date: Tue, 1 Apr 2014 16:49:34 -0700 Subject: [PATCH] seed boost rng with cluster_seedgen by default --- src/caffe/common.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/caffe/common.cpp b/src/caffe/common.cpp index 59cbc56..8ead6e4 100644 --- a/src/caffe/common.cpp +++ b/src/caffe/common.cpp @@ -121,7 +121,9 @@ class Caffe::RNG::Generator { }; Caffe::RNG::RNG() -: generator_(new Generator) { } +: generator_(new Generator) { + generator_->rng = caffe::rng_t(cluster_seedgen()); +} Caffe::RNG::RNG(unsigned int seed) : generator_(new Generator) { -- 2.7.4