Skip to content

Instantly share code, notes, and snippets.

@keltanas
Created November 10, 2016 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keltanas/7767837a859f96707e86ea309b83990c to your computer and use it in GitHub Desktop.
Save keltanas/7767837a859f96707e86ea309b83990c to your computer and use it in GitHub Desktop.
<?php
# http://seyferseed.ru/ru/php/kastomnaya-strategiya-gerenatsii-id-v-doctrine-2.html#sthash.r0n7nj05.dpbs
print 'orig: 581a8775b67e88-ca53-8b4568' . PHP_EOL;
print 'comp: ' . uniqid('', false) . dechex(mt_rand(0, 0xF)) . '-' . dechex(getmypid()) . '-' . dechex(mt_rand(0, 0xFFFFFF)) . PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment