Skip to content

[NativeAOT-LLVM] Question: Is GetCryptographicallySecureRandomBytes allowed to block #1844

Open
@yowl

Description

@yowl

I was thinking of implementing GetCryptographicallySecureRandomBytes with WASI's random_get

https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md
(near the end)

This can block though, I'm not an expert, but I suppose that it blocks waiting for entropy. Is that OK for GetCryptographicallySecureRandomBytes ?

(I also need to check if emscrpten actually supports it when compiling for the browser.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-LLVMLLVM generation for Native AOT compilation (including Web Assembly)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions