Changeset 752


Ignore:
Timestamp:
Feb 17, 2007, 1:43:27 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Moving a function implementation from .h to .cc.

Location:
trunk/yat/random
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/random/random.cc

    r750 r752  
    5353
    5454 
     55  RNG* RNG::instance(void)
     56  {
     57    if (!instance_)
     58      instance_=new RNG;
     59    return instance_;
     60  }
     61
     62
    5563  u_long RNG::max(void) const
    5664  {
  • trunk/yat/random/random.h

    r738 r752  
    9393    /// @see seed and seed_from_devurandom
    9494    ///
    95     static RNG* instance(void)
    96       { if (!instance_) instance_=new RNG; return instance_; }
     95    static RNG* instance(void);
    9796
    9897    ///
Note: See TracChangeset for help on using the changeset viewer.