I placed the GUI version there are source.cpp. I don't have the simpler, non-GUI version that I posted yesterday, but the use of srand and rand are the same in both examples. The GUI version compiles on OpenBSD if you have fltk installed from ports. I only wrote the simpler version to demonstrate the difference I was seeing.
Brad On Mon, 08 Feb 2010 07:57 -0500, "Brad Tilley" <b...@16systems.com> wrote: > Thought the discussion was over. We repost it later. > > On Mon, 08 Feb 2010 09:07 +0100, "Marc Espie" <es...@nerim.net> wrote: > > On Sun, Feb 07, 2010 at 01:59:33PM -0500, Brad Tilley wrote: > > > I wrote a small cpp application to generate randomish passwords. It > > > compiles and runs OK on OpenBSD, however, it does not seem to create > > > random strings (the first and last chars seldom ever change, etc). The > > > same code compiles and runs on Linux and Windows and *does* produce > > > randomish strings (no often repeating chars). The source code is small > > > and is contained in a single file. I placed it here along with binaries > > > for OpenBSD and Windows: > > > > > http://16systems.com/downloads > > > > One thing which is *really* annoying is that you can't even leave your > > source > > around for a day or two for other people to at least see it and join in > > the > > discussion. > > > > This is just another bad point for you. Definitely no cookie.