Am 29.05.2014 21:17, schrieb Paolo Bonzini: > Il 29/05/2014 20:41, Peter Lieven ha scritto: >> static inline unsigned geo_rand_range(double m, double n) { >> return exp((log(m) + (double)rand() / >> (RAND_MAX / (log(n) - log(m) + log(1)) + log(1)))); >> } > > Yes, exactly (except that log(1) is zero, and was only needed in your case > because you were using integers).
Ok, you are right ;-) are you okay with the rest of the patch for now? I don't think that we will need more than one retry in a BUSY condition expect for extreme congestion scenarios. Peter > > Paolo