shadow/shadow — pull request #237 by jdgeddes (2014-09-23 16:33:02+00:00)
Title: Read function needs non-zero return when reading from random file

When reading from a /dev/random file, ret wasn't getting set and was being returned as 0. Have `random_nextNBytes` return how many bytes were copied over and assign that to ret in the `read` function.