Description: fix double comparision in testBug58950.cc
 The double comparision using != failed on i386 due to the way floating
 point works. The other test cases already ship this equals function;
 copy it and use it.
Author: Philipp Kern <pkern@debian.org>
Bug-Debian: http://bugs.debian.org/733301

--- clhep-2.1.4.1.orig/Random/test/testBug58950.cc
+++ clhep-2.1.4.1/Random/test/testBug58950.cc
@@ -14,6 +14,16 @@
 #include "CLHEP/Random/Random.h"
 #include "pretend.h"
 
+// Absolutely Safe Equals Without Registers Screwing Us Up
+bool equals01(const std::vector<double> &ab) {
+  return ab[1]==ab[0];
+}  
+bool equals(double a, double b) {
+  std::vector<double> ab(2);
+  ab[0]=a;  ab[1]=b;
+  return (equals01(ab));
+}
+
 bool printCheck( int & i, double & r, std::ofstream & os )
 {
     os << i << " " << r << std::endl; 
@@ -151,7 +161,7 @@ int main() {
     g->setTheSeeds(seeds);
     for (int i=0; i < nNumbers; ++i) {
         double r = g->flat();
-        if(v[i] != r ) {
+        if(! equals(v[i],r) ) {
            ++badcount;
            std::cerr << " rollback fails: i, v[i], r "
                      << i << "  " << v[i] << " " << r << std::endl;
