Skip to content

Add GRND_INSECURE constant to os module #127776

@rruuaanng

Description

@rruuaanng

Feature or enhancement

Proposal:

This issue suggests adding new os constants.

os.GRND_INSECURE

os.getrandom(/* some byte size */, GRND_INSECURE) # It cannot be used with os.GRND_RANDOM

It can return a pseudo-random number when the entropy pool is not initialized, instead of blocking.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions