waywardgeek / infnoise

The world's easiest TRNG to get right
Creative Commons Zero v1.0 Universal
723 stars 99 forks source link

Made output to buffer or stdout contingent on output buffer being NULL. #69

Closed tinskip closed 6 years ago

tinskip commented 6 years ago

The interface in libinfnoise.h did not allow for turning off output to stdout, so instead of adding another noOutput parameter, I deprecated it, and made output to stdout dependent on the output bufffer (result) being NULL. I could not find any instances where output to stdout and to a buffer are a "thing", which makes sense, so it seems like a safe change.

It is now possible to use libinfnoise in "silent" mode by specifying a result buffer.

manuel-domke commented 6 years ago

This is also fixed in #70, which is now merged.