Unique Avatar: Follow up fix randomness.
This commit is contained in:
parent
3bd83e7cba
commit
8a2579139e
1 changed files with 2 additions and 2 deletions
|
@ -90,8 +90,8 @@ class App.User extends App.Model
|
||||||
height = 226 * size/baseSize
|
height = 226 * size/baseSize
|
||||||
|
|
||||||
rng = new Math.seedrandom(@id)
|
rng = new Math.seedrandom(@id)
|
||||||
x = rng * (width - size)
|
x = rng() * (width - size)
|
||||||
y = rng * (height - size)
|
y = rng() * (height - size)
|
||||||
|
|
||||||
return App.view('avatar_unique')
|
return App.view('avatar_unique')
|
||||||
data: data
|
data: data
|
||||||
|
|
Loading…
Reference in a new issue