Commit ae7a5f35 authored by Lynn Garren's avatar Lynn Garren
Browse files

accept fix for bug 104289

parent 4b542fbb
2014-05-04 Lynn Garren <garren@fnal.gov>
* Random/test/testBug58950.cc: accept fix for bug 104289
2014-05-04 Lynn Garren <garren@fnal.gov>
* Matrix/src/Vector.cc: remove inline - no reason to use it in a cc file
......
2014-05-04 Lynn Garren <garren@fnal.gov>
* test/testBug58950.cc: accept fix for bug 104289
2014-02-24 Lynn Garren <garren@fnal.gov>
* remove register declaration of ints and doubles
......
......@@ -10,6 +10,8 @@
#include <stdexcept>
#include <cmath>
#include <stdlib.h>
#include <limits>
#include <complex>
#include "CLHEP/Random/RanecuEngine.h"
#include "CLHEP/Random/Random.h"
#include "pretend.h"
......@@ -151,7 +153,8 @@ int main() {
g->setTheSeeds(seeds);
for (int i=0; i < nNumbers; ++i) {
double r = g->flat();
if(v[i] != r ) {
// if(v[i] != r ) {
if(std::abs(v[i] - r) >= std::numeric_limits<double>::epsilon()) {
++badcount;
std::cerr << " rollback fails: i, v[i], r "
<< i << " " << v[i] << " " << r << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment