Unique Avatar: Follow up fix randomness.

This commit is contained in:
Martin Edenhofer 2018-02-21 10:54:47 +01:00
parent 3bd83e7cba
commit 8a2579139e

View file

@ -90,8 +90,8 @@ class App.User extends App.Model
height = 226 * size/baseSize
rng = new Math.seedrandom(@id)
x = rng * (width - size)
y = rng * (height - size)
x = rng() * (width - size)
y = rng() * (height - size)
return App.view('avatar_unique')
data: data