[mythtv] [mythtv-commits] mythtv/master commit: c7b18dbc4 by Daniel Kristjansson (daniel-kristjansson)

Daniel Kristjansson danielk at cuymedia.net
Tue Aug 23 22:14:51 UTC 2011


On Tue, 2011-08-23 at 23:36 +0200, Jonathan Martens wrote:

> > As for srandom() we can just put a stub in compat.h for that on
> > windows, it just initializes the pseudo-random number generator.
> 
> You mean something like:
> 
> #define srandom srand
> 
> Or something else?

I meant just

#define srandom 0

but that srand will work too.

What I've done for now is change compat.h to use Qt's qrand()
function under mingw. It's not a great random number generator,
but it is thread-safe.

-- Daniel



More information about the mythtv-dev mailing list