PATH:
home
/
lab2454c
/
bancmils.com
/
vendor
/
fakerphp
/
faker
/
src
/
Faker
/
Provider
<?php namespace Faker\Provider; class Uuid extends Base { /** * Generate name based md5 UUID (version 3). * * @example '7e57d004-2b97-0e7a-b45f-5387367791cd' * * @return string */ public static function uuid() { // 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 = self::numberBetween(0, 2147483647) . '#' . self::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] ); } }
[+]
ar_EG
[-] UserAgent.php
[edit]
[+]
tr_TR
[+]
bg_BG
[+]
nb_NO
[+]
ja_JP
[+]
sr_Latn_RS
[+]
it_IT
[+]
bn_BD
[+]
en_NG
[-] Internet.php
[edit]
[-] File.php
[edit]
[+]
sk_SK
[+]
is_IS
[+]
fi_FI
[+]
en_PH
[+]
kk_KZ
[+]
sl_SI
[-] Miscellaneous.php
[edit]
[+]
..
[+]
et_EE
[+]
id_ID
[+]
pl_PL
[-] Address.php
[edit]
[+]
en_IN
[-] Color.php
[edit]
[+]
lt_LT
[+]
en_GB
[+]
ru_RU
[-] Company.php
[edit]
[+]
th_TH
[+]
fa_IR
[+]
ko_KR
[+]
ka_GE
[+]
hr_HR
[+]
en_US
[+]
nl_BE
[+]
de_CH
[-] Lorem.php
[edit]
[+]
sr_RS
[-] Biased.php
[edit]
[+]
he_IL
[+]
vi_VN
[+]
pt_PT
[-] Image.php
[edit]
[+]
ar_JO
[+]
uk_UA
[+]
cs_CZ
[+]
en_UG
[+]
it_CH
[-] Medical.php
[edit]
[+]
ms_MY
[+]
hy_AM
[-] Person.php
[edit]
[+]
de_AT
[+]
zh_CN
[+]
en_ZA
[-] Barcode.php
[edit]
[+]
fr_BE
[+]
hu_HU
[-] HtmlLorem.php
[edit]
[+]
en_NZ
[+]
ar_SA
[+]
sv_SE
[+]
en_AU
[+]
lv_LV
[+]
ro_RO
[+]
en_CA
[+]
sr_Cyrl_RS
[-] Text.php
[edit]
[+]
el_CY
[+]
es_VE
[+]
me_ME
[+]
en_SG
[+]
fr_CA
[-] DateTime.php
[edit]
[+]
en_HK
[-] .htaccess
[edit]
[-] Base.php
[edit]
[+]
ro_MD
[+]
at_AT
[+]
mn_MN
[+]
da_DK
[-] Payment.php
[edit]
[+]
pt_BR
[-] PhoneNumber.php
[edit]
[+]
nl_NL
[+]
es_PE
[+]
ne_NP
[-] Uuid.php
[edit]
[+]
es_ES
[+]
de_DE
[+]
zh_TW
[+]
fr_CH
[+]
fr_FR
[+]
el_GR
[+]
es_AR