CodeBlock/dagd — Issue #12: Create random sort URL
Author: Xeoncross
Created: 2011-12-12 16:09:26+00:00
State: open

You should be creating the random URL based on the ID of the record. Otherwise you might be doing randstr() a **lot** later on just trying to find a non-used string.

$fromBase = 10;
$toBase = 36;
print base_convert($number, $fromBase, $toBase). "\n";
print base_convert(base_convert($number, $fromBase, $toBase), $toBase, $fromBase);