diff options
Diffstat (limited to 'samplecode/SampleChart.cpp')
-rw-r--r-- | samplecode/SampleChart.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleChart.cpp b/samplecode/SampleChart.cpp index 68d750f881..35f8206f76 100644 --- a/samplecode/SampleChart.cpp +++ b/samplecode/SampleChart.cpp @@ -16,7 +16,7 @@ namespace { // Generates y values for the chart plots. void gen_data(SkScalar yAvg, SkScalar ySpread, int count, SkTDArray<SkScalar>* dataPts) { dataPts->setCount(count); - static SkMWCRandom gRandom; + static SkRandom gRandom; for (int i = 0; i < count; ++i) { (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), yAvg + SkScalarHalf(ySpread)); @@ -123,7 +123,7 @@ protected: canvas->clear(0xFFE0F0E0); - static SkMWCRandom colorRand; + static SkRandom colorRand; static SkColor gColors[kNumGraphs] = { 0x0 }; if (0 == gColors[0]) { for (int i = 0; i < kNumGraphs; ++i) { |