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