Skip to content

Consider using getrandom() or getentropy() for NetBSD 10.0 #274

@josephlr

Description

@josephlr

One of the things pointed out in #273 was that NetBSD 10.0 is set to introduce getrandom() and getentropy() compatibility functions in its libc. Similar to what we already do on DragonFly BSD, FreeBSD, and OpenBSD, we should consider if we want to use one of these functions as our randomness source.

As we still want to support NetBSD 9.2 and lower, we will need to check if this function exists, and only then call it. Otherwise, we should fall back to using the existing implementation. An example of this sort of functionality is our NetBSD implementation.

Note that we will not make any changes to our implementation until the NetBSD 10.0 API has been finalized.

Links

Mailing List discussion
Draft manpage

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting on upstreamWaiting for upstream changes in an external project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions