java - Reimplementing mkpasswd -
On Linux I used the mkpasswd
to generate random passwords for use on OS X I do not have this order, instead of entering my VPS every time, I wanted to implement it using Java. What I have to do is to choose random 4 lowercase letters, 2 upper case letters, 2 symbols (/., Etc.) and 2 numbers. Then I'll make a vector and turn it around too.
Do you think this is sufficient enough randommaking?
Yes, it is. If you are using:
An example of this class is used to generate a stream of pseudo-random numbers. The square uses a 48-bit seed, which is modified using a linear congruential formula. (See Donald Knuth, The Computer of Programming, Vol. 2, Volume 3.2.1.)
Random Algorithms implemented by the class use a protected utility method which supplies up to 32 pseudorandom bits on each inococation. Can do .
Edit
In response to a comment:
/ ** * creates a new one Is Random Number Generator This constructor * considers the seed of a random number generator to give it * possibly * value to be separated from any other inventor of this constructor. * / Public Random () {This (++ Sequence System + System. NanoTime ()); } Private static volatile long beed univivir = 8682522807148012L;
Comments
Post a Comment