Viktor Szakats 2ae90b92ba 2011-09-20 17:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbapi.h
  * src/rtl/hbrandom.c
    + Changed Harbour's core pseudo-random generator from STD C rand()/srand()
      to superior implementation. New implementation fixed MT problems with 
      the standard solution on certain targets (f.e. win/mingw, win/msvc)
      Based on Przemek's patch which is in turn based on algorithm by 
      Steve Park: http://www.cs.wm.edu/~va/software/park/ suggested by me 
      on the list. Further modifications:
         * HB_RANDOMINTMAX() adapted. Checkme, I'm not sure about this.
         * HB_RANDOMSEED() updated.
         + headers cleaned, copyright updated, note added
         + automatic seed defaulting like in previous version (checkme, 
           we may as well drop it, though it will be create incompatibility)
         ; per-thread seed didn't work well for me (even with new engine) 
           so I didn't implement it.
         + added proto for hb_random_seed()
2011-09-22 15:14:21 +00:00
Description
Harbour Core — Reference source for Five development
172 MiB
Languages
C 80.3%
xBase 17.8%
Makefile 0.6%
C++ 0.4%
Harbour 0.4%
Other 0.3%