-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window.crypto.getRandomValues(array) breaks when loaded together with Meteor (for example) #1197
Comments
Does Safari have native support for Uint32Array? If not my guess is that the polyfill for it isn't compatible with This could actually explain the reason why lots of the pixel manipulation commands in BitmapData don't work in Safari, because they use Uint32Array too, and if something has borked Safaris use of it then it explains a lot. I'll investigate further. |
Ok I figured out the reason for this and it was indeed the Uint32Array polyfill for IE9 causing it. Please re-test (against dev branch) and this should be fine now. |
solved! |
…rray on Safari, causing errors like BitmapData.getPixel32 to fail and other related issues (fixes phaserjs#1043 and phaserjs#1197)
I noticed that when Phaser is loaded together with Meteor in my case,
window.crypto.getRandomValues(array) stops working.
If I try without Phaser being loaded, I get
I get:
[948945600, 3374845945, 3984172385, 110198777, 2902514722, 2978147553, 3769228441, 3954409512, 3650036860, 3809070537]
When I try the same when Phaser is loaded I get:
This happens only in Safari...
Any thoughts on this?
The text was updated successfully, but these errors were encountered: