seed boost rng with cluster_seedgen by default
authorJeff Donahue <jeff.donahue@gmail.com>
Tue, 1 Apr 2014 23:49:34 +0000 (16:49 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Tue, 1 Apr 2014 23:49:34 +0000 (16:49 -0700)
src/caffe/common.cpp

index 59cbc56..8ead6e4 100644 (file)
@@ -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) {