diff options
| author | Vincent Richard <[email protected]> | 2004-10-21 17:05:47 +0200 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2004-10-21 17:05:47 +0200 |
| commit | 2949fb51f13e1236d5c161f02e1c2c8541100e9f (patch) | |
| tree | 991edcf50483116ce83977a4d9e652de8c5328dc /src/utility/random.hpp | |
| parent | header class unit tests added (diff) | |
| download | vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.tar.gz vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.zip | |
Refactoring (see ChangeLog).
Diffstat (limited to 'src/utility/random.hpp')
| -rw-r--r-- | src/utility/random.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/utility/random.hpp b/src/utility/random.hpp index 0d9dd92a..70ae6716 100644 --- a/src/utility/random.hpp +++ b/src/utility/random.hpp @@ -25,6 +25,9 @@ namespace vmime { namespace utility { +/** Pseudo-random number generator. + */ + class random { public: @@ -33,21 +36,21 @@ public: * * @return random number */ - static const unsigned int next(); + static const unsigned int getNext(); /** Return the current time as a number (may be used to * build "random" strings). * * @return time as a number */ - static const unsigned int time(); + static const unsigned int getTime(); /** Return the current process number (may be user to * build "random" strings). * * @return process number */ - static const unsigned int process(); + static const unsigned int getProcess(); protected: |
