Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Site Design & Development > Programming Help
Reload this Page Jonathan Street's Blog: Random thoughts on random strings
Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
Affiliate Blogs is Offline
Revenue Source Veteran
Affiliate Blogs has a brilliant future here!
 
Affiliate Blogs's Avatar
 
Join Date: Oct 2005
Posts: 9,079
Jack of All Trades
CyberSpace United States
   
Jonathan Street's Blog: Random thoughts on random strings - 07-03-2008

On his blog, Jonathan Street has posted some "random thoughts" on generating random (or not so random) strings in PHP.
Humans are astoundingly bad at being random and I just slapped the keyboard a few times until I felt I had the required 16 characters. Writing some code to produce a fairly random string is incredibly easy. I've easily done it a dozen times or more. Though only because it is easier to re-write it than to find where I put the last one
He gives two examples that work, but aren't the best possibilities for making truly random strings - one using mt_rand to select a random character from a string and the other using the same idea but instead using the char() function to replace the string of characters.
His other examples include the use of the uniqid function with the more_entropy setting enabled and an md5 or sha1 hash (for which he gives positives and negtives).


Jonathan Street's Blog: Random thoughts on random strings - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Jonathan Street's Blog: Random thoughts on random strings
Thread Thread Starter Forum Replies Last Post
Jonathan Street's Blog: Is PHP good enough for science? Affiliate Blogs Programming Help 0 03-20-2008 02:53 PM
Jonathan Street's Blog: PHP5 Compete API Wrapper Affiliate Blogs Programming Help 1 03-16-2008 04:34 PM
Jonathan Street's Blog: When scraping content from the web don't make it obvious Affiliate Blogs Programming Help 0 11-07-2007 04:27 PM
Jonathan Street's Blog: Elsewhere...New PEAR package for the Compete API Affiliate Blogs Programming Help 0 08-06-2007 09:13 PM
Blogging: Random Thoughts and Predictions Affiliate Marketing News Internet Marketing Articles 0 01-16-2007 06:43 AM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34