Skip to content
Snippets Groups Projects
  1. Jan 06, 2006
    • rswindell's avatar
      alert() returns the string printed. · 39e14179
      rswindell authored
      The variable 'exit_code' is only used for the return value if it's a number.
      Bug-fix: sbbs_srand() wasn't being called - random number generator wasn't
      being seeded.
      39e14179
  2. Dec 29, 2005
  3. Dec 22, 2005
  4. Dec 21, 2005
  5. Dec 20, 2005
  6. Dec 19, 2005
  7. Dec 16, 2005
  8. Dec 15, 2005
    • deuce's avatar
      Beginnings of a solution to the vararg problem. This problem surfaces on · 1e974066
      deuce authored
      a number of non-x86 archetectures, most notably I64 and Linux/PPC.
      
      Essentially, the problem is that there is NO way to portably contruct a
      va_list at run-time.  Currently, this is done in (at least) execmisc.cpp
      (and probobly in js_global.c or wherever format() and friends are)
      
      This provides an alternate method of handling such issues which could
      (potentially) solve the problem as well as add float/double support.
      Comments are encouraged.  This is *NOT* part of the xpdev build and will
      not be until it is tested and the marked ToDo items are dealt with.
      Further, it most likely won't be *USED* in Synchronet until v4, or until
      it recieves heavy testing on a very wide range of platforms and format
      specifiers.
      
      xp_*printf() functions for all the standard *printf() functions should be
      written, including asprintf() and vasprintf() from the GNU C library.
      This will require a new type argument (XP_PRINTF_TYPE_AUTO perhaps) which
      will assume that the passed argument is the correct type.
      1e974066
  9. Dec 14, 2005
    • deuce's avatar
      Actually define HAS_DEV_RANDOM and RANDOM_DEV as well as HAS_DEV_URANDOM · c30d8222
      deuce authored
      and URANDOM_DEV used for seeding.
      Fall-through seeding if there are problems opening URANDOM_DEV.
      Use random() and srandom() where available as it's considered quite a bit
      better than rand().
      Define (but don't use) HAS_SRANDOMDEV_FUNC to indicate that srandomdev()
      is avaiable.  The reason it's not used is that xp_randomize() returns the
      seed value presumably to make it possible to replay a random sequence and
      srandomdev() creates states which cannot be replicated on demand.
      c30d8222
Loading