Unique Avatar: fix randomness

This commit is contained in:
Felix Niklas 2018-02-21 10:40:09 +01:00
parent 077d631ef2
commit 3bd83e7cba

View file

@ -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 = 0.5 * (width - size) x = rng * (width - size)
y = 0.5 * (height - size) y = rng * (height - size)
return App.view('avatar_unique') return App.view('avatar_unique')
data: data data: data