775 snippets from 1604 members, and growing!
|
login
|
join
about
bytebin
members
tags
snippets
join
Snippets
Submit a Snippet
Search Snippets
New Snippets
Top Snippets
Top Tags
PHP
(138)
JavaScript
(125)
Java
(66)
VBSCRIPT
(58)
String
(44)
CSS
(31)
CSharp
(28)
File
(28)
HTML
(27)
mysql
(25)
C
(24)
VB.NET
(24)
python
(24)
CPlusPlus
(23)
groovy
(23)
New Snippets
Shell keepalive t...
Clean PHP Templat...
PHP/MySQL impleme...
Analyte - Easy to...
Easy SQLite inter...
Very lightweight ...
AutoComplete plug...
AutoComplete plug...
Connection Java -...
View PostgreSql
Venture Capital Jobs
New Members
KennethCC
me
jamesmcm
Can
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
Top Members
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
Home
/
Snippets
/
Random Variable length String
/
Comments
Random Variable length String
Snippet Menu
Revisions
Comments
Related Snippets
Add to Favorites
Email Snippet
Download Snippet
Print Snippet
Blog Snippet
snippet
|
revisions
|
comments
|
related
|
Add to Favorites
|
email
download
|
print
|
blog it
New Comment
32
Sat. Oct. 28th, 2006 3:59 PM
SCoon
Just call randomString(33)
That is the length of the result string?
Reply
collisions
Thu. Oct. 19th, 2006 7:46 PM
bugmenot
mktime()+rand() ? why? Just to have more chances for collision?
uniqid() for 13 letters
uniqid('', true) for 23 letters
Use, what you already have.
Reply
New Comment
That is the length of the result string?
uniqid() for 13 letters
uniqid('', true) for 23 letters
Use, what you already have.