ossp-pkg/uuid/uuid_prng.c 1.1 -> 1.2
--- uuid_prng.c 2004/01/10 12:16:03 1.1
+++ uuid_prng.c 2004/01/18 19:22:54 1.2
@@ -94,7 +94,7 @@
/* try to gather data from the system PRNG device */
if (prng->devfd != -1) {
- p = data_ptr;
+ p = (unsigned char *)data_ptr;
n = data_len;
cnt = 0;
while (n > 0) {
@@ -112,7 +112,7 @@
/* always also apply the weaker PRNG. In case the stronger PRNG device
based source failed, this is the only remaining randomness, of course */
- for (p = data_ptr, n = 0; n < data_len; n++)
+ for (p = (unsigned char *)data_ptr, n = 0; n < data_len; n++)
*p++ ^= (unsigned char)(((unsigned int)rand() >> 7) & 0xFF);
return PRNG_RC_OK;
|
|