add getSeed()
git-svn-id: http://skia.googlecode.com/svn/trunk@5775 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
21b519d56f
commit
425a8c71e4
@ -103,6 +103,12 @@ public:
|
||||
a->set(this->nextS(), this->nextU());
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the current seed. This allows the caller to later reset to the
|
||||
* same seed (using setSeed) so it can generate the same sequence.
|
||||
*/
|
||||
int32_t getSeed() const { return fSeed; }
|
||||
|
||||
/** Set the seed of the random object. The seed is initialized to 0 when the
|
||||
object is first created, and is updated each time the next pseudo random
|
||||
number is requested.
|
||||
|
Loading…
Reference in New Issue
Block a user