Fix crash for some seed values.
Change-Id: I2f8d0a388a1bfdd4d3111abce7e4bcafe1e9bf3d Fixes: 30169383
This commit is contained in:
committed by
Daniel Sandler
parent
1e52909888
commit
7c2e730f63
@@ -143,7 +143,7 @@ public class Cat extends Drawable {
|
||||
mSeed = seed;
|
||||
|
||||
setName(context.getString(R.string.default_cat_name,
|
||||
String.valueOf(mSeed).substring(0, 3)));
|
||||
String.valueOf(mSeed % 1000)));
|
||||
|
||||
final Random nsr = notSoRandom(seed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user