| Index: samplecode/SampleChart.cpp
|
| diff --git a/samplecode/SampleChart.cpp b/samplecode/SampleChart.cpp
|
| index 68d750f8816c3a8594cfdb2c0c2d56e3e22ad7f6..35f8206f76f2bd815a512db8a802428ff6033349 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) {
|
|
|