Module Name:    othersrc
Committed By:   agc
Date:           Thu Aug 18 04:19:47 UTC 2011

Modified Files:
        othersrc/crypto/external/bsd/ssss/dist/src/libssss: secsplit.c

Log Message:
With thanks to yamt for the heads-up, and to tls for the suggestion, ssss
needs a csprng - use arc4random(3) rather than random(3) for an unpredictable
source of randomness.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    othersrc/crypto/external/bsd/ssss/dist/src/libssss/secsplit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/crypto/external/bsd/ssss/dist/src/libssss/secsplit.c
diff -u othersrc/crypto/external/bsd/ssss/dist/src/libssss/secsplit.c:1.1.1.1 othersrc/crypto/external/bsd/ssss/dist/src/libssss/secsplit.c:1.2
--- othersrc/crypto/external/bsd/ssss/dist/src/libssss/secsplit.c:1.1.1.1	Mon Mar 21 05:43:35 2011
+++ othersrc/crypto/external/bsd/ssss/dist/src/libssss/secsplit.c	Thu Aug 18 04:19:47 2011
@@ -170,7 +170,7 @@
 /******************* Code related to splitting *********************/
 
 /* Return a random number from 0 to n-1. */
-#define CRANDOM(x)	(uint32_t)(random() % (x))
+#define CRANDOM(x)	(uint32_t)(arc4random() % (x))
 
 /*
  * Evaluate the given polynomial, n coefficients, at point x=i.

Reply via email to