GM
Do you ever dream about code? It seems to happen sometimes when I'm working through building logic for something. I end up dreaming about it and sometimes even end up figuring out the best method forward 😳
GM
Do you ever dream about code? It seems to happen sometimes when I'm working through building logic for something. I end up dreaming about it and sometimes even end up figuring out the best method forward 😳
yes
Yes i solved a problem this way. I was trying to figure out how to generate a password that would always pass complexity requirements without reducing the entropy.
I woke up that night with the simple solution immediately top of mind…
just a loop that generates a random password, then tests it for complexity. If it doesn’t meet complexity requirements, loop again. If complexity test succeeds, return that as the generated password. (And a max loop count to avoid infinite loop conditions, of course.)