Flutter Engine
The Flutter Engine
|
Public Member Functions | |
LCGRandom (uint32_t seed) | |
SkScalar | nextSScalar1 () |
Utility class that implements pseudo random 32bit numbers using a fast linear equation. Unlike rand(), this class holds its own seed (initially set to 0), so that multiple instances can be used with no side-effects.
Copied from the original implementation of SkRandom. Only contains the methods used by SkDiscretePathEffect::filterPath, with methods that were not called directly moved to private.
Definition at line 41 of file SkDiscretePathEffect.cpp.
|
inline |
Definition at line 43 of file SkDiscretePathEffect.cpp.
|
inline |
Return the next pseudo random number expressed as a SkScalar in the range [-SK_Scalar1..SK_Scalar1).
Definition at line 48 of file SkDiscretePathEffect.cpp.