Skip to content

CryptographyRandom::nextInt is failed on wasmJs target #59

@vdshb

Description

@vdshb

Simple reproducer is failed on wasmJs (both nodejs and browser) target (works fine on all other targets):

@Test
fun test() {
    val k = CryptographyRandom.nextInt(10)
}

Exception:

IrLinkageError: Can not read value from variable 'jsArray': Variable uses unlinked class symbol 'org.khronos.webgl/Int8Array|null[0]'

kotlin 2.1.0

I'm not sure if it's compiler or library issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions