Menu

#3 error messages disappear down a pipe

v1.0_(example)
closed-fixed
None
5
2014-11-18
2013-09-24
G. Jones
No

In version 0.90 RNG_output writes error messages to cout and/or stdout.
Since i'm normally redirecting output through a pipe to another program,
i don't see the messages. It would be better to write the messages to
cerr and/or stderr. In Posix at least, that defaults to the "controlling tty"
even if output is redirected.

Discussion

  • - 2013-09-24

    Will change for 0.91. Usage help text, "unrecognized RNG name", "invalid number of output bytes", and "not a valid 64 bit hexadecimal seed" messages should now go to stderr. I believe all other error messages (meaning those generated internally by the library) already did. The only stuff going to stdout should now be the raw binary output and (if it's explicitly requested with the "name" command line parameter) the RNG name.

     
  • - 2013-09-24
    • status: open --> accepted
     
  • - 2014-11-18
    • status: accepted --> closed-fixed
     
    • G. Jones

      G. Jones - 2014-11-28

      Thanks, i've got 0.91 now. All three issues from 0.90 seem fixed.
      Looks good. (From G. Jones)

       

Log in to post a comment.

MongoDB Logo MongoDB