BVLC/caffe — pull request #63 by jeffdonahue (2014-01-29 21:18:43+00:00)
Title: Bernoullirngbugfix

Fix Bernoulli RNG bug and add test case - was previously generating all 0s unless p==1 exactly. Not entirely sure why boost::bernoulli_distribution doesn't work - perhaps it typecasts p to an int, thereby truncating anything in [0,1) to 0?