- nl2br: documentation ( source)
- substr: documentation ( source)
- sha1: documentation ( source)
- hexdec: documentation ( source)
<?php
$serverSeed = '12e110ac5606c5aa49d906a939770a94ee994f6e2a5457fb88ee0761ec65c38bd18b071a7d68e7dcaa2f4cec81931f7e0d1a8861bf4b4b7d0565bef7952d417a';
$clientSeed = '6feaee330fd4c05949839893bf5a7aed6167d65f';
$nonce = 1;
for($nonce =200000; $nonce < 202000; $nonce++){
$seed = $serverSeed.'-'.$clientSeed.'-'.$nonce;
do {
$seed = sha1($seed);
$lucky = hexdec(substr($seed,0,8));
} while ($lucky > 4294960000);
$luckyNumber = ($lucky % 10000) / 100;
if ($luckyNumber < 0)
$luckyNumber = -$luckyNumber;
echo $nonce.":".$luckyNumber;
echo nl2br ("\n");
}
This script was stopped while abusing our resources