Skip to content

Commit

Permalink
Fix #219 ? Wrong usage of uniform_real_distribution generated only in…
Browse files Browse the repository at this point in the history
…f values
  • Loading branch information
cyrilbouvier committed Feb 19, 2019
1 parent 6b0dbdd commit 01e10aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-simd.C
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ template <class Element, class Alloc>
typename enable_if<is_floating_point<Element>::value>::type
generate_random_vector (vector<Element,Alloc> &a) {
typedef typename std::uniform_real_distribution<Element> RandGen;
RandGen G(numeric_limits<Element>::lowest(),numeric_limits<Element>::max());
RandGen G(numeric_limits<Element>::min(),numeric_limits<Element>::max());
std::generate (a.begin(), a.end(), [&](){return G(entropy_generator);});
}

Expand Down

0 comments on commit 01e10aa

Please sign in to comment.