]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/entropy.c
Fix assignment of <char/int>* to unsigned <char/int>* and vice versa.
[openldap] / libraries / liblutil / entropy.c
index 6995cf4bc654451836d93a06a7a9e322bdee57ab..505f3b5a70d384a1b61286cb2ae460563f6ace88 100644 (file)
@@ -122,7 +122,7 @@ int lutil_entropy( unsigned char *buf, ber_len_t nbytes )
 
                for( n = 0; n < nbytes; n += 16 ) {
                        struct lutil_MD5Context ctx;
-                       char digest[16];
+                       unsigned char digest[16];
 
                        /* poor resolution */
 #ifdef HAVE_GETTIMEOFDAY