Skip to content

window.crypto.getRandomValues(array) breaks when loaded together with Meteor (for example) #1197

@driesvancraen

Description

@driesvancraen

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

var array = new Uint32Array(10); window.crypto.getRandomValues(array);

I get:

[948945600, 3374845945, 3984172385, 110198777, 2902514722, 2978147553, 3769228441, 3954409512, 3650036860, 3809070537]

When I try the same when Phaser is loaded I get:

javascript
TypeError: Type error
line: 1
message: "Type error"
stack: "getRandomValues@[native code]↵eval code↵eval@[native code]↵_evaluateOn↵_evaluateAndWrap↵evaluate"
__proto__: Error

This happens only in Safari...

Any thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions