Menu

stdin not working on windows

Hans
2020-08-23
2020-08-24
  • Hans

    Hans - 2020-08-23

    Hello,
    when i use
    RNG_test stdin < test.txt
    i get the error "“error reading standard input”.
    I am using Windows 10.

    I have tested it with several versions (including 0.95 merge to 0.94).
    In earlier versions i dont get the error message, instead it crashes.

    Can someone help or maybe tell me what i have to patch in sources?

    Thanks!

     
  • - 2020-08-23

    That probably means it ran out of input while reading from stdin. That's pretty normal. Realize that by default, PractRand tries to test 32 terabytes, and I very much doubt test.txt is 32 terabytes. Try making sure that test.txt is at least a few kilobytes long, then run PractRand with the command-line option "-tlmin 1kb" - that will tell PractRand to start displaying results after just 1 kilobyte.

     

    Last edit: 2020-08-23
  • Hans

    Hans - 2020-08-24

    Thanks, this works!
    rng_test stdin < encrypted.txt -tlmin 1KB

     

Log in to post a comment.