Replace int -> uint to avoid signed integer overflow
[oweals/busybox.git] / libbb / pw_encrypt.c
index 4cdc2de7635f101111244040ac2e5c16d5c10513..fe06a8fe68f920d40239b9807d64591fc09853fb 100644 (file)
@@ -30,7 +30,7 @@ static int i64c(int i)
 int FAST_FUNC crypt_make_salt(char *p, int cnt /*, int x */)
 {
        /* was: x += ... */
-       int x = getpid() + monotonic_us();
+       unsigned x = getpid() + monotonic_us();
        do {
                /* x = (x*1664525 + 1013904223) % 2^32 generator is lame
                 * (low-order bit is not "random", etc...),