1. 05 Jul, 2011 2 commits
    • Paul Eggert's avatar
      * lisp.h (struct vectorlike_header, struct Lisp_Subr): Signed sizes. · 6089c567
      Paul Eggert authored
      Use EMACS_INT, not EMACS_UINT, for sizes.  The code works equally
      well either way, and we prefer signed to unsigned.
    • Paul Eggert's avatar
      Random fixes. E.g., (random) never returned negative values. · d8ed26bd
      Paul Eggert authored
      * fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the
      subseconds part to the entropy, as that's a bit more random.
      Prefer signed to unsigned, since the signedness doesn't matter and
      in general we prefer signed.  When given a limit, use a
      denominator equal to INTMASK + 1, not to VALMASK + 1, because the
      latter isn't right if USE_2_TAGS_FOR_INTS.
      * sysdep.c (get_random): Return a value in the range 0..INTMASK,
      not 0..VALMASK.  Don't discard "excess" bits that random () returns.
  2. 04 Jul, 2011 38 commits