| 63 | const anonymizingUser = function (user) { |
| 64 | const id = (user != null ? user.id : undefined) != null ? (user != null ? user.id : undefined) : user |
| 65 | const hashString = str => // hash * 33 + c |
| 66 | (__range__(0, str.length, false).map((i) => str.charCodeAt(i))).reduce((hash, char) => ((hash << 5) + hash) + char, 5381) |
| 67 | return $.i18n.t('general.player') + ' ' + (Math.abs(hashString(id)) % 10000) |
| 68 | } |
| 69 |
no test coverage detected