> does KeyGenerator always calls 'nextBytes()' from SecureRandom (given
> to it at time of 'init') , in a sequence, in short if the seed to PRNG
> is same , then will the key be same always.?
If you are trying to reproduce a key this is not the way to do it.
As for the internal mechanism - I couldn't tell you.
Use a PRNG directly, or use a hash to generate a passphrase. But if you
are consistently seeding a PRNG the same expecting an external mechanism to
respond consistently - it is a violation of basic OOP principals - using a
component in a way it is not intended.
Maybe you should ask how you can accomplish what you are trying instead of
jumping ahead to a solution and asking if it will work.
--
LTP
:)