Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: gm/getpostextpath.cpp

Issue 805963002: There can be only one (SkRandom)! (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/emptypath.cpp ('k') | gm/hittestpath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/getpostextpath.cpp
diff --git a/gm/getpostextpath.cpp b/gm/getpostextpath.cpp
index a4115202588324342d6f153e634e32f5118d2ef3..45701071bb6f9f6bd609a27feb4c7633cb4b196e 100644
--- a/gm/getpostextpath.cpp
+++ b/gm/getpostextpath.cpp
@@ -56,7 +56,7 @@ protected:
SkAutoTArray<SkScalar> widths(len);
paint.getTextWidths(text, len, &widths[0]);
- SkLCGRandom rand;
+ SkRandom rand;
SkScalar x = SkIntToScalar(20);
SkScalar y = SkIntToScalar(100);
for (int i = 0; i < len; ++i) {
« no previous file with comments | « gm/emptypath.cpp ('k') | gm/hittestpath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698