commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trei...@apache.org
Subject cvs commit: jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid VersionFourGenerator.java
Date Mon, 31 May 2004 07:05:50 GMT
treilly     2004/05/31 00:05:50

  Modified:    id/src/java/org/apache/commons/id/uuid
                        VersionFourGenerator.java
  Log:
  Uses Contants interface
  
  Revision  Changes    Path
  1.6       +3 -3      jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/VersionFourGenerator.java
  
  Index: VersionFourGenerator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/id/src/java/org/apache/commons/id/uuid/VersionFourGenerator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- VersionFourGenerator.java	2 May 2004 08:51:54 -0000	1.5
  +++ VersionFourGenerator.java	31 May 2004 07:05:50 -0000	1.6
  @@ -38,7 +38,7 @@
    * @version $Revision$ $Date$
    *
    */
  -public final class VersionFourGenerator implements IdentifierGenerator {
  +public final class VersionFourGenerator implements IdentifierGenerator, Constants {
   
       /** Byte position of the clock sequence and reserved field */
       private static final short TIME_HI_AND_VERSION_BYTE_6 = 6;
  @@ -107,7 +107,7 @@
            * @return a new version four UUID using either <code>SecureRandom</code>
or <code>Random</code>.
            */
           private UUID nextUUID(boolean secure) {
  -            byte[] raw = new byte[UUID.BYTE_LENGTH];
  +            byte[] raw = new byte[UUID_BYTE_LENGTH];
               if (secure) {
                   //Initialize the secure random if null.
                   if (secureRandom == null) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message