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.