Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Custom-length random/unique string generator

by RichardK (Parson)
on Feb 02, 2013 at 19:42 UTC ( #1016745=note: print w/replies, xml ) Need Help??


in reply to Custom-length random/unique string generator

Using the process id for your random number doesn't look like a good idea.

PIDs get reused so they're not unique and can be a very small value.

It's a bit better to make a string from the date time plus other info then hash that.

Or as other people have said, it's a lot better to use an existing module :)

  • Comment on Re: Custom-length random/unique string generator

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016745]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-09-30 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (562 votes). Check out past polls.