The RAND scalar function in the Common Code Infrastructure component in IBM DB2 9.5 before FP5 and 9.7 before FP1, when the Database Partitioning Feature (DPF) is used, produces "repeating" return values, which might allow attackers to defeat protection mechanisms based on randomization by predicting a value.
http://www.vupen.com/english/advisories/2009/3520
http://www.securityfocus.com/bid/37332
http://www-01.ibm.com/support/docview.wss?uid=swg21412902
http://www-01.ibm.com/support/docview.wss?uid=swg21293566
http://www-01.ibm.com/support/docview.wss?uid=swg1IZ44872