Subject | srand question |
---|---|
Author | Robby |
Post date | 2004-07-16T15:57:51Z |
I stuck FB 2.0's srand UDF functionality into FB 1.5.1 and was
wondering how often I have to use it to seed the random number
generator. i.e. does a single seed called anywhere last on the
entire server as long as it's running, is it a per-connection thing,
or should I reseed in every procedure/trigger that uses rand()?
(I guess reseeding could never hurt, as I'd get a new psuedo-random
sequence out of rand() whenver I do it....)
Thanks,
Robby
wondering how often I have to use it to seed the random number
generator. i.e. does a single seed called anywhere last on the
entire server as long as it's running, is it a per-connection thing,
or should I reseed in every procedure/trigger that uses rand()?
(I guess reseeding could never hurt, as I'd get a new psuedo-random
sequence out of rand() whenver I do it....)
Thanks,
Robby