Skip to content

The first two times of call crypto.getRandomValues returns 0 #202

Open
@jlucaso1

Description

This behavior always occurs

Welcome to Porffor (0.47.3) running on Node (22.9.0)
using opt -O1, parser acorn, valtype f64

> crypto.getRandomValues(new Uint8Array(1));
Uint8Array(1) [ 0 ] 
> crypto.getRandomValues(new Uint8Array(1));
Uint8Array(1) [ 0 ] 
> crypto.getRandomValues(new Uint8Array(1));
Uint8Array(1) [ 229 ] 
> crypto.getRandomValues(new Uint8Array(1));
Uint8Array(1) [ 252 ] 
>

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions