"Jay Sprenkle" <[EMAIL PROTECTED]> wrote:
> On 1/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > > Please pick a pseudo algorithm of your choice and give us the ability to
> > > seed it?
> > >
> >
> > You already have this capability.  Use the redefinably I/O feature
> > to insert your own random number seeder in place of the one that
> > comes built in.
> 
> 
> I don't follow that. You mean write a user defined function?
> 

Compile with -DSQLITE_ENABLE_REDEF_IO=1.  Then there will be a
global variable named

   sqlite3Os.xRandomSeed

which is a pointer to the function that seeds the random number
generator.  Before starting up SQLite for the first time, write
a pointer to whatever seeding function you want to use into the
variable above and that is what SQLite will use to seed its PRNG.

Not sure how to write the seeding function?  There are examples
in os_unix.c, os_win.c, and os_os2.c.

--
D. Richard Hipp  <[EMAIL PROTECTED]>


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to