<doc>
	<legacy_id></legacy_id>
	<name>uuid</name>
	<type>function</type>

	<syntax>
		<example>uuid ([type, [namespace, name]])</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Genrates a universally unique identifier (UUID)</summary>

	<examples>
<example>get uuid()</example>
<example>put uuid(random) into tRandomUUID</example>
	</examples>

	<history>
		<introduced version="6.1">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
	</classification>

	<references>
		<function tag="md5Digest">md5Digest Function</function>
	</references>

	<description>
	<overview>Use the <b>uuid</b> function to genrate a universally unique identifier.</overview>

		<parameters>
  <parameter>
    <name>type</name>
    <description>A string. The type of UUID to be generated, one of:</description>
    <options title="">
      <option>
        <item>empty</item>
        <description/>
      </option>
      <option>
        <item>random</item>
        <description/>
      </option>
      <option>
        <item>md5</item>
        <description/>
      </option>
      <option>
        <item>sha1</item>
        <description/>
      </option>
    </options>
  </parameter>
  <parameter>
    <name>namespace_id</name>
    <description>Where type is "md5" or "sha1" the UUID of the namespace in which the name sits</description>
  </parameter>
  <parameter>
    <name>name</name>
    <description>Any string, where type is "md5" or "sha1" </description>
  </parameter>		</parameters>

	<value>If the type is empty or random a version 4 (random) UUID is returned. A cryptographic quality pseudo-random number generator is used to generate the randomness.<p>If the type is md5 a version 3 UUID is returned.</p><p>If the type is sha1 a version 5 UUID is returned.</p></value>
	<comments>The <b>uuid</b> returns a UUID, the type of UUID can be specified.<p></p><p>If type is "md5" or "sha1" then it returns a version 3 (md5) or version 5 (sha1) UUID. Here namespace_id should be the UUID of the namespace in which name sits, and name can be any string.</p></comments>
	</description>
</doc>