diff --git a/externals/cxc/dist_normal.c b/externals/cxc/dist_normal.c
index 7847745ba2eaaca50fcaa9ff57e0d1a2e5ac58b9..62ebd0656150bc62e8bd9376c97891d254005527 100644
--- a/externals/cxc/dist_normal.c
+++ b/externals/cxc/dist_normal.c
@@ -22,7 +22,7 @@ static int makeseed(void)
     return (random1_nextseed & 0x7fffffff);
 }
 
-static int rand_random_fl(seed) {
+static int rand_random_fl(unsigned int seed) {
   int q;
   double state;
 
diff --git a/externals/cxc/random1.c b/externals/cxc/random1.c
index 5c6c963970fbcd0c61302430d9e56fb32e84374f..dcf77b8575f1e6cbeed9acb5c8e7e4753b8efc6e 100644
--- a/externals/cxc/random1.c
+++ b/externals/cxc/random1.c
@@ -16,7 +16,7 @@
 #endif
 
 static int makeseed(void);
-static int rand_random1(int);
+static int rand_random1(unsigned int);
 
 static int makeseed(void)
 {
@@ -27,7 +27,7 @@ static int makeseed(void)
 
 /* -------------------------- random1 ------------------------------ */
 /* linear congruential generator.  Generator x[n+1] = a * x[n] mod m */
-static int rand_random1(seed)
+static int rand_random1(unsigned int seed)
 {
   int state;