Have you considered an option where the user can supply the seed so that
an application can implement a complete sequence from the pseudo random
number generator?
This might help with Win32.
http://msdn2.microsoft.com/en-us/library/aa387694.aspx
[EMAIL PROTECTED] wrote:
The pseudo-random number generator (PRNG) in SQLite is becoming more
important so it seem good to make sure it is well seeded. On
Unix this is easy - just open /dev/urandom and read out as much
randomness as you need. But I do not know how to do this on
win32 and wince. The current implementation seeds the random
number generator on these platforms by grabbing a copy of the
current system time. See the sqlite3WinRandomSeed() function
in os_win.c for details. This is not a very good method for
seeding a PRNG.
Can someone with more knowledge of win32 and wince please suggest
a better method for seeding the PRNG on those platforms?
--
D. Richard Hipp <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------