Skip to content

使用unity6000.0.38f1导出的微信小游戏项目运行时有下面getRandomValues这个报错,但是unity2022.3.50f1中正常 #30

@longshilin

Description

@longshilin

使用的sdk版本是:https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git#pre-v0.1.25
具体报错日志:
no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };(env: macOS,mg,1.06.2409140; lib: 3.5.1)

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