Re: replace %rand[x]-[y]% macro in string with random string
| From: | Richard Davey | Date: | Tue, 02 Dec 2003 23:33:47 +0000 |
| Subject: | Re: replace %rand[x]-[y]% macro in string with random string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171611@lists.php.net to get a copy of this message | ||
Hello Daniel,
Tuesday, December 2, 2003, 10:46:33 PM, you wrote:
dh> For generation of a random string with length 1.000.000 it takes about
dh> 13 seconds on my xp 1600+.. that's quite a lot, imho, so suggestions
dh> are very welcome..
Just so we're clear on this - you're creating a string (an email
address) of a million characters? I don't know my mail RFC's that well, but
I'm sure this is well beyond what it considers "standard".
Does the string HAVE to make sense? I mean does a spambot really
care less, or can even detect, what the email address contains? Surely
just creating a truly random string would suffice (and indeed remove
the need for the rather elaborate function you posted). I fully accept
I might be missing the whole point here :)
--
Best regards,
Richard mailto:rich@launchcode.co.uk