(((max - min + 1) * (double) random()) / (MAX_RANDOM_VALUE +
1.0));
eliminating the result of max + 1 in a corner case when random() equals to
MAX_RANDOM_VALUE.
--
Alexey Klyukin http://www.commandprompt.com/
The PostgreSQL Company - Command Prompt, Inc.
--
.php
I've made minor changes to the patch:
- fixed all rejects when applying it to the current CVS head.
- fixed counting ntids in gistnext if TIDBitmap is not null.
- added missing expected/bitmapops.out
It passes all regression tests on my system.
Regards,
--
Alexey Kl