diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /cxxtest/sample/mock/Dice.cpp | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'cxxtest/sample/mock/Dice.cpp')
| -rw-r--r-- | cxxtest/sample/mock/Dice.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cxxtest/sample/mock/Dice.cpp b/cxxtest/sample/mock/Dice.cpp new file mode 100644 index 000000000..161b80fa2 --- /dev/null +++ b/cxxtest/sample/mock/Dice.cpp @@ -0,0 +1,14 @@ +#include <T/stdlib.h> +#include "Dice.h" + +Dice::Dice() +{ + T::srand( T::time( 0 ) ); +} + +unsigned Dice::roll() +{ + return (T::rand() % 6) + 1; +} + + |
