aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePoints.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SamplePoints.cpp')
-rw-r--r--samplecode/SamplePoints.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SamplePoints.cpp b/samplecode/SamplePoints.cpp
index 3bb8126f57..ac2f625f99 100644
--- a/samplecode/SamplePoints.cpp
+++ b/samplecode/SamplePoints.cpp
@@ -41,7 +41,7 @@ protected:
return this->INHERITED::onQuery(evt);
}
- static void fill_pts(SkPoint pts[], size_t n, SkMWCRandom* rand) {
+ static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) {
for (size_t i = 0; i < n; i++)
pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480);
}
@@ -49,7 +49,7 @@ protected:
virtual void onDrawContent(SkCanvas* canvas) {
canvas->translate(SK_Scalar1, SK_Scalar1);
- SkMWCRandom rand;
+ SkRandom rand;
SkPaint p0, p1, p2, p3;
const size_t n = 99;