sockjs/sockjs-client

Vulnerability issue on Math.random() - Fortify Priority: High

francescaProject opened this issue · 0 comments

The random number generator implemented by random() cannot withstand a cryptographic attack.
In this case, the function that generates weak random numbers is random() in sockjs.js on line 3607.

return Math.floor(Math.random() * max);