Use NULL, not 0, as arg of `time'.
(limit)
Lisp_Object limit;
{
- int val;
+ EMACS_INT val;
+ Lisp_Object lispy_val;
unsigned long denominator;
if (EQ (limit, Qt))
- seed_random (getpid () + time (0));
+ seed_random (getpid () + time (NULL));
if (NATNUMP (limit) && XFASTINT (limit) != 0)
{
/* Try to take our random number from the higher bits of VAL,
}
else
val = get_random ();
- return make_number (val);
+ XSETINT (lispy_val, val);
+ return lispy_val;
}
\f
/* Random data-structure functions */