Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 425 Bytes
<?php
$items = 100000;
function random_key()
{
$key = "";
$length = mt_rand(4, 20);
for ($x = 0; $x < $length; $x++)
{
$key .= chr( mt_rand(40, 122) );
}
$key = str_replace(chr(92), '', $key); // no \'s
return $key;
}
for ($x = 0; $x < $items; $x++)
{
$key = random_key();
$life = mt_rand(3600, 86400);
echo "$x: $key";
`curl -s -XPUT -d'{"value":"$key","life": $life}' http://127.0.0.1:3000`;
echo "\n";
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.