Jump to content
php.lv forumi

Funkcija random string ģenerēšanai


Lord

Recommended Posts

Labdien,

Internetā atradu funkciju, kas izveido pēc iespējas īsāku random string - http://paste.php.lv/d88745e90d6ef147b9bc2e541acf2476?lang=php . Problēma ir tāda, ka šams neizmanto "a" . Kad ID == 1, izmantotais burts ir "b" "a" vietā, pie 63 tiek izmantots "bb" "aa" vietā. Kopumā sanāk, ka "a" netiek izmantots pie neviena ID. Varbūt kādam ir idejas, kādēļ tas tā ir?

Paldies!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...