-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Tony Godshall wrote:
>> Well, I'm don't have much to say about about the other points but one
>> certainly does not need to keep an array for something like this- with
>> the classic pseudorandom shuffle algorithm you only need to keep a
>> count of the ones visited.  Shall I pull out my Knuth?

That... only applies if you actually keep a _queue_ around, of all the
ports that you plan to try, and shuffle it. Surely that's more waste
(65,535 shorts, versus 65,535 _bits_), not less? ...We're not shuffling,
here, we're choosing.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHFn+z7M8hyUobTrERCD10AJ9YGkKdGx/fvvdmGs/kxImFNEABzwCeIfdc
e0znB9IYTQVEjSwx9X3rWsY=
=dmih
-----END PGP SIGNATURE-----

Reply via email to