postgresql/src/backend
Heikki Linnakangas 98c50656ca Increase the number of different values used when seeding random().
When a backend process is forked, we initialize the system's random number
generator with srandom(). The seed used is derived from the backend's pid
and the timestamp. However, we only used the microseconds part of the
timestamp, and it was XORed with the pid, so the total range of different
seed values chosen was 0-999999. That's quite limited.

Change the code to also use the seconds part of the timestamp in the seed,
and shift the microseconds so that all 32 bits of the seed are used.

Honza Horak
2013-10-24 17:00:18 +03:00
..
access Fix typos in comments. 2013-10-24 11:50:02 +03:00
bootstrap Add use of asprintf() 2013-10-13 00:09:18 -04:00
catalog Add use of asprintf() 2013-10-13 00:09:18 -04:00
commands Fix two bugs in setting the vm bit of empty pages. 2013-10-23 14:24:37 +03:00
executor Don't allow system columns in CHECK constraints, except tableoid. 2013-09-23 13:31:22 -04:00
foreign Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
lib Reset the binary heap in MergeAppend rescans. 2013-08-30 19:15:21 -04:00
libpq Fix memory leak when an empty ident file is reloaded. 2013-10-24 14:03:26 +03:00
main Renovate display of non-ASCII messages on Windows. 2013-06-26 11:17:33 -04:00
nodes In bms_add_member(), use repalloc() if the bms needs to be enlarged. 2013-09-30 16:54:03 +03:00
optimizer Add use of asprintf() 2013-10-13 00:09:18 -04:00
parser Add use of asprintf() 2013-10-13 00:09:18 -04:00
po Translation updates 2013-10-07 16:51:52 -04:00
port Remove IRIX port. 2013-10-18 08:14:21 -04:00
postmaster Increase the number of different values used when seeding random(). 2013-10-24 17:00:18 +03:00
regex Fix regex match failures for backrefs combined with non-greedy quantifiers. 2013-07-18 21:22:37 -04:00
replication Fix typo in comment. 2013-09-03 13:17:09 +03:00
rewrite Allow only some columns of a view to be auto-updateable. 2013-10-18 10:35:36 -04:00
snowball Update copyrights for 2013 2013-01-01 17:15:01 -05:00
storage Suppress a couple of compiler warnings seen with older gcc versions. 2013-10-22 21:31:57 -04:00
tcop Centralize effective_cache_size default setting 2013-10-09 08:33:12 -04:00
tsearch pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
utils Plug memory leak when reloading config file. 2013-10-24 15:27:40 +03:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Move relpath() to libpgcommon 2013-02-21 22:46:17 -03:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00