Com.php 386 Bytes
Newer Older
1
2
3
4
5
<?php

namespace Drupal\Component\Uuid;

/**
6
 * Generates a UUID using the Windows internal GUID extension.
7
8
9
10
 *
 * @see http://php.net/com_create_guid
 */
class Com implements UuidInterface {
11
12
13
  /**
   * {@inheritdoc}
   */
14
15
  public function generate() {
    // Remove {} wrapper and make lower case to keep result consistent.
16
    return strtolower(trim(com_create_guid(), '{}'));
17
  }
18

19
}