1  /**
     2   * com.sekati.crypt.RUID
     3   * @version 1.0.5
     4   * @author jason m horwitz | sekati.com
     5   * Copyright (C) 2007  jason m horwitz, Sekat LLC. All Rights Reserved.
     6   * Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
     7   */
     8  
     9  import com.sekati.crypt.IHash;
    10  
    11  /**
    12   * Runtime Unique ID's for runtime Object management and identification.
    13   */
    14  class com.sekati.crypt.RUID implements IHash {
    15  
    16  	private static var _key:String = "__RUID";
    17  	private static var _id:Number = 0;
    18  
    19  	/**
    20  	 * Generate a runtime unique id
    21  	 * @return (Number) RUID
    22  	 */
    23  	public static function create():Number {
    24  		return _id++;
    25  	}
    26  
    27  	/**
    28  	 * Return the current RUID id
    29  	 * @return Number
    30  	 */
    31  	public static function getCurrentId():Number {
    32  		return _id;	
    33  	}
    34  
    35  	private function RUID() {
    36  	}
    37  }