Skip to content

[FEATURE REQUEST] Use RandomSrouce.getRandomValues to implement Random.self_init  #1081

Closed
@alainfrisch

Description

@alainfrisch

The current implementation relies on the Math.random, which would not be sufficient for crypto application:

var x = now^0xffffffff*Math.random();

It would be better, I think, to use RandomSource.getRandomValues() when it is available (with a fallback to the current method if not).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions