From d0ad0cf2286f35458a710ecd46457dfcbc9051c0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 26 Oct 1999 23:04:44 +0000 Subject: [PATCH] Minor cleanup. --- libraries/liblutil/entropy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/liblutil/entropy.c b/libraries/liblutil/entropy.c index 027d31c391..dc33f7cfc4 100644 --- a/libraries/liblutil/entropy.c +++ b/libraries/liblutil/entropy.c @@ -11,7 +11,7 @@ #include /* - * lutil_entropy() provides nbyptes of entropy in buf. + * lutil_entropy() provides nbytes of entropy in buf. * Quality offerred is suitable for one-time uses, such as "once" keys. */ int lutil_entropy( char *buf, int nbytes ) @@ -31,6 +31,7 @@ int lutil_entropy( char *buf, int nbytes ) rc = read( fd, buf, nbytes ); close(fd); + /* should return nbytes */ if( rc < nbytes ) return -1; return 0; -- 2.39.5