libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.

Home Page:https://www.libtom.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wishlist: Use getentropy() in rng_get_bytes.c if available

oittaa opened this issue · comments

Prerequisites

Description

It would be great if you supported getentropy() in https://github.com/libtom/libtomcrypt/blob/develop/src/prngs/rng_get_bytes.c

It's found at least in modern Linux, OpenBSD, and FreeBSD based operating systems. It blocks reads until the random pool is initialized and after that "it just works" without complicated error checks. Thanks for the great library!