Nothing about LLMs is random, how is this not common sense? If you prompt it the same prompt 50 times, it'll always converge towards the most plausible answer in its training based on probability, and most of them will follow the first pattern. The paper mentions using different chats for each of the 50 prompts and using the first password suggested and then finding similarities between them. Would it be the same if…
AI-generated password isn't random, it just looks that way
11–20 of 25 posts
Re: AI-generated password isn't random, it just looks that way
#12Not surprising at all if you've used LLMs to generate fiction; they always choose the same few names.
Re: AI-generated password isn't random, it just looks that way
#13If you say: "Generate a strong password using Python", then Claude will write code using the `secrets` module, execute it, and report the result, and you'll actually get a strong password.
To get good results out of an LLM, it's helpful to spend a few minutes understanding how they (currently) work. This is a good example because it's so simple.
Re: AI-generated password isn't random, it just looks that way
#14If you say: "Generate a strong password", then Claude will do what's reported in the article. If you say: "Generate a strong password using Python", then Claude will write code using the `secrets` module, execute it, and report the result, and you'll actually get a strong password. To get good results out of an LLM, it's helpful to spend a few minutes understanding how they (currently) work. This is a good example be…
Re: AI-generated password isn't random, it just looks that way
#15If you say: "Generate a strong password", then Claude will do what's reported in the article. If you say: "Generate a strong password using Python", then Claude will write code using the `secrets` module, execute it, and report the result, and you'll actually get a strong password. To get good results out of an LLM, it's helpful to spend a few minutes understanding how they (currently) work. This is a good example be…
Given that Claude already has the ability to write and execute code, it's not obvious to me why it should, in principle, need an explicit nudge. Surely it could just fulfil the first request exactly like it fulfils the second.
Re: AI-generated password isn't random, it just looks that way
#16I think this speaks for itself: simedw ~ $ claude -p "random number between 1 and 10" 7 simedw ~ $ claude -p "random number between 1 and 10" 7 simedw ~ $ claude -p "random number between 1 and 10" 7 simedw ~ $ claude -p "random number between 1 and 10" 7
Re: AI-generated password isn't random, it just looks that way
#17If you say: "Generate a strong password", then Claude will do what's reported in the article. If you say: "Generate a strong password using Python", then Claude will write code using the `secrets` module, execute it, and report the result, and you'll actually get a strong password. To get good results out of an LLM, it's helpful to spend a few minutes understanding how they (currently) work. This is a good example be…
I think that "Generate a strong password" is a pretty clear and unambiguous instruction. Generating a password that can be easily recovered is a clear failure to follow that instruction. Given that Claude already has the ability to write and execute code, it's not obvious to me why it should, in principle, need an explicit nudge. Surely it could just fulfil the first request exactly like it fulfils the second.
Maybe in the future companies making the models will train them specifically on when to require a source of true randomness and they might start writing code for it.
Re: AI-generated password isn't random, it just looks that way
#18However, "make my a python script the generates a random password" works.
Skill issue.
Re: AI-generated password isn't random, it just looks that way
#19Re: AI-generated password isn't random, it just looks that way
#20FWIW, you can generate your own random PW on any UN*X Type system, I think on MACs also: For example: tr -cd "[:alnum:]" Change "alnum" to "print" to get other characters. This will generate 10 20 characters passwords.
shuf -i 1-10 -n1
10
shuf -n1 /usr/share/dict/usa
saltier
# random 24 char
base64 /dev/urandom | tr -d '/+' | dd bs=24 count=1 2>/dev/null;echo
5seFtWG09vTUc0VCMb3BJ6Al
# random letter
base64 /dev/urandom | tr -d '/+' | sed s/[^[:alpha:]]//g | tr 'A-Z' 'a-z' | dd bs=1 count=1 2>/dev/null;echo
x
# bash
echo $RANDOM
21178