BUG=
R=reed@google.com
Review URL: https://codereview.chromium.org/
132053002
git-svn-id: http://skia.googlecode.com/svn/trunk@12995
2bbb7eff-a529-9590-31e7-
b0007b416f81
{
static const SkScalar gInvBlockSizef = SkScalarInvert(SkIntToScalar(kBlockSize));
+ // According to the SVG spec, we must truncate (not round) the seed value.
+ fSeed = SkScalarTruncToInt(seed);
// The seed value clamp to the range [1, kRandMaximum - 1].
- fSeed = SkScalarRoundToInt(seed);
if (fSeed <= 0) {
fSeed = -(fSeed % (kRandMaximum - 1)) + 1;
}