[pgpool-committers: 304] pgpool: Fix load balance in Solaris. If compiled in Solaris, use

Tatsuo Ishii ishii at postgresql.org
Mon Jun 4 00:53:15 JST 2012


Fix load balance in Solaris.  If compiled in Solaris, use
srand()/rand() instead of srandom()/random().  Problem is, random() in
Solaris does not respect RAND_MAX (it's 2^16-1 in Solaris). So using
random() in Solaris results in strange load balancing calculation.
Use srand()/rand() instead although they produce lesser quality random
numbers. Problem reported at [pgpool-general: 396].

Branches
--------
feature/watchdog
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a7174263552cae162d571e0e97387bd541fa2a27

Modified Files
--------------
child.c |   10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)



More information about the pgpool-committers mailing list