示例#1
0
 public function test_that_comb_timestamp_covers_least_significant_bits_with_flag()
 {
     $uuid1 = Uuid::comb(false);
     $uuid2 = Uuid::comb(false);
     $node1 = $uuid1->node();
     $node2 = $uuid2->node();
     $this->assertSame(substr($node1, 0, 4), substr($node2, 0, 4));
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public static function generate()
 {
     return new static(Uuid::comb());
 }
示例#3
0
 /**
  * Creates a sequential pseudo-random Uuid instance
  *
  * @param bool $msb Whether or not timestamp covers most significant bits
  *
  * @return Uuid
  */
 function uuid(bool $msb = true) : Uuid
 {
     return Uuid::comb($msb);
 }