Possible fix for eof errors.
Fixed wrong length random string.