123
This commit is contained in:
18
STLPORT/test/regression/rand.h
Normal file
18
STLPORT/test/regression/rand.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user