Simple polyfill that just overrides the getRandomValues crypto function with a dummy function to avoid phantomjs breaking with when using crypto
npm install phantomjs-crypto-polyfillSimple polyfill that just overrides the getRandomValues crypto function with a dummy function to avoid PhantomJS breaking with when using crypto
```
npm install --save-dev phantomjs-crypto-polyfill
``
require('phantomjs-crypto-polyfill')
Include the polyfill in the files list of karma.conf
``
...
files: [
'./node_modules/phantomjs-crypto-polyfill/crypto-polyfill.js',
...
]
...