diff options
Diffstat (limited to 'bench/PathUtilsBench.cpp')
-rw-r--r-- | bench/PathUtilsBench.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/PathUtilsBench.cpp b/bench/PathUtilsBench.cpp index 6cbbb315ac..a53a1f59d2 100644 --- a/bench/PathUtilsBench.cpp +++ b/bench/PathUtilsBench.cpp @@ -18,8 +18,7 @@ //this function is redefined for sample, test, and bench. is there anywhere // I can put it to avoid code duplcation? static void fillRandomBits( int chars, char* bits ){ - SkTime time; - SkMWCRandom rand = SkMWCRandom( time.GetMSecs() ); + SkMWCRandom rand(SkTime::GetMSecs()); for (int i = 0; i < chars; ++i){ bits[i] = rand.nextU(); |