diff options
Diffstat (limited to 'include/utils/SkRandom.h')
-rw-r--r-- | include/utils/SkRandom.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/utils/SkRandom.h b/include/utils/SkRandom.h index e71be3a9d5..d083fc6b2f 100644 --- a/include/utils/SkRandom.h +++ b/include/utils/SkRandom.h @@ -1,4 +1,3 @@ - /* * Copyright 2006 The Android Open Source Project * @@ -6,7 +5,6 @@ * found in the LICENSE file. */ - #ifndef SkRandom_DEFINED #define SkRandom_DEFINED @@ -103,7 +101,7 @@ public: in the range [min..max). */ SkScalar nextRangeScalar(SkScalar min, SkScalar max) { - return SkScalarMul(this->nextUScalar1(), (max - min)) + min; + return this->nextUScalar1() * (max - min) + min; } /** Return the next pseudo random number expressed as a SkScalar @@ -257,7 +255,7 @@ public: in the range [min..max). */ SkScalar nextRangeScalar(SkScalar min, SkScalar max) { - return SkScalarMul(this->nextUScalar1(), (max - min)) + min; + return this->nextUScalar1() * (max - min) + min; } /** Return the next pseudo random number expressed as a SkScalar |