portable_get_random

Get cryptographically random bytes on various operating systems. (by panzi)

Portable_get_random Alternatives

Similar projects and alternatives to portable_get_random

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better portable_get_random alternative or higher similarity.

portable_get_random reviews and mentions

Posts with mentions or reviews of portable_get_random. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-01.
  • Go 1.20 Released
    13 projects | news.ycombinator.com | 1 Feb 2023
    To get cryptographically grade randomness you can use one of these C functions:

    BSD, newer macOS, and GNU libc: int getentropy(void buffer, size_t length);

    Linux 3.19+: ssize_t getrandom(void buf, size_t buflen, unsigned int flags);

    iOS and macOS 10.7+: int SecRandomCopyBytes(SecRandomRef, size_t, uint8_t );

    Fuchsia: void zx_cprng_draw(void* buffer, size_t buffer_size);

    Any *nix: Read from "/dev/random" (or "/dev/urandom" under the assumption that your system has already enough entropy).

    Windows: There are different functions/libraries depending on the Windows version and some of them are a complicated multi-step mess.

    Some time ago I wrote a C library that abstracts that away just for fun: https://github.com/panzi/portable_get_random

Stats

Basic portable_get_random repo stats
1
0
10.0
over 2 years ago

panzi/portable_get_random is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of portable_get_random is C.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com