ns/main/source/stlport/test/regression/rand.h
Karl 8552ac617c Import from old repository
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@1 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-03-09 01:31:56 +00:00

18 lines
302 B
C++

#ifndef _rand_h
#define _rand_h
#include <cstdlib>
#if !defined (STLPORT) || defined(__STL_USE_NAMESPACES)
using namespace std;
#endif
class MyRandomGenerator
{
public:
unsigned long operator()(unsigned long n_)
{
return rand() % n_;
}
};
#endif // _rand_h