fixing getEntropy for ext-web server