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

Issue 24105003: srand() + rand() -> SkRandom (Closed)

Created:
7 years, 3 months ago by mtklein
Modified:
7 years, 3 months ago
Reviewers:
jvanverth1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

srand() + rand() -> SkRandom rand() makes these two GMs thread-unsafe. When run concurrently they can interfere with each other. Use SkRandom instead to guarantee independence. BUG=skia:1590 R=jvanverth@google.com Committed: https://code.google.com/p/skia/source/detail?r=11295

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -10 lines) Patch
M gm/imageblur.cpp View 2 chunks +7 lines, -5 lines 0 comments Download
M gm/imagemagnifier.cpp View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
mtklein
7 years, 3 months ago (2013-09-16 17:24:59 UTC) #1
jvanverth1
lgtm
7 years, 3 months ago (2013-09-16 18:15:54 UTC) #2
mtklein
7 years, 3 months ago (2013-09-16 18:19:35 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r11295 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698