change unique_paint_dictionary to change the paint randomly, instead of just
incrementing a value, to avoid accidental best/worst case behavior on our
insertion sort.



git-svn-id: http://skia.googlecode.com/svn/trunk@4501 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/PictureRecordBench.cpp b/bench/PictureRecordBench.cpp
index 092c532..0f82fda 100644
--- a/bench/PictureRecordBench.cpp
+++ b/bench/PictureRecordBench.cpp
@@ -10,6 +10,7 @@
 #include "SkPaint.h"
 #include "SkPicture.h"
 #include "SkPoint.h"
+#include "SkRandom.h"
 #include "SkRect.h"
 #include "SkString.h"
 
@@ -141,10 +142,10 @@
 protected:
     virtual float innerLoopScale() const SK_OVERRIDE { return 0.1f; }
     virtual void recordCanvas(SkCanvas* canvas) {
-
+        SkRandom rand;
         for (int i = 0; i < M; i++) {
             SkPaint paint;
-            paint.setColor(i);
+            paint.setColor(rand.nextU());
             canvas->drawPaint(paint);
         }
     }