[Semibug] Help with Random Password Generator
Jonathan Drews
jondrews at fastmail.com
Fri Apr 12 11:42:21 EDT 2024
On Thu, Apr 11, 2024 at 05:54:43PM -0400, Nick Holland wrote:
>
> There's NOTHING random about time... sigh.
> (granted, IIRC, srand and rand have a small input and output range, so ... it
> isn't as bad as my initial reflexive puking would suggest)
>
> > to make it less deterministic ?
Thanks Nick, Steve and others who have given input on this. I just inserted an
integer and let it go at that:
srand(5);
I'll reread Nick's email later and try and improve the program. It is
sufficiently random for my purposes:
$ ./RandomPasswdGen
L:NdqdAdw20aOs1HwjaICzeVO9YO9DE9iutJGaQu
$ ./RandomPasswdGen
gj7bhOcSmRxLae9buJKYdvm!5nos7AoK2lIll0kh
More information about the Semibug
mailing list