Ignore:
Timestamp:
Aug 8, 2005, 1:33:13 AM (17 years ago)
Author:
Jari Häkkinen
Message:

Replaced utility::random_singleton.* with random::random.*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/gslapi/utility.cc

    r358 r377  
    44
    55#include <c++_tools/gslapi/vector.h>
    6 #include <c++_tools/utility/random_singleton.h>
     6#include <c++_tools/random/random.h>
    77
    88#include <utility>
     
    3333  {
    3434    vector vec(invec);
    35     utility::random_singleton*
    36       rnd=utility::random_singleton::instance();
     35    random::DiscreteUniform rnd;
    3736    for (size_t i=0; i<vec.size(); i++){
    38       size_t index = rnd->uniform_int(vec.size()-i);
     37      size_t index = rnd(vec.size()-i);
    3938      invec[i]=vec(index);
    4039      vec(index)=vec(vec.size()-i-1);
Note: See TracChangeset for help on using the changeset viewer.