xio: add comment to function
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 28 Jan 2013 18:13:06 +0000 (28 19:13 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Mon, 28 Jan 2013 18:13:06 +0000 (28 19:13 +0100)
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
xio.c

diff --git a/xio.c b/xio.c
index bb5fe38..eb693b3 100644 (file)
--- a/xio.c
+++ b/xio.c
@@ -189,6 +189,10 @@ static void randombytes(unsigned char *x, unsigned long long xlen)
        }
 }
 
+/* Note: it's not really secure, but the name only suggests it's better to use
+ * than rand(3) when transferring bytes over the network in non-security
+ * critical structure members. secrand() is only used to fill up salts actually.
+ */
 int secrand(void)
 {
        int ret;