Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ UUID in Java     - Graphic Git (Linux)

- Minimum period string problem (Programming)

- Which file system is most suitable for your Linux system (Linux)

- VMware virtual machines to install virt-manager unable to connect to libvirt's approach (Linux)

- A custom implementation of the Android sidebar (Programming)

- After installing Ubuntu 15.04, to do a few things (Linux)

- Vim useful plugin: vundle (Linux)

- To use iostat display I / O status under Linux (Linux)

- crontab cause CPU exception Analysis and Processing (Linux)

- Disk partition MBR (Linux)

- OpenResty load balancing MySQL (Database)

- Linux at command (Linux)

- RedHat Linux 5.5 installation process SVN Service Notes (Server)

- Modify MySQL character encoding under Linux (Database)

- Linux system package manager (rpm, yum, source packages installation) (Linux)

- CentOS 6.5 installation Python3.0 (Linux)

- Shell Scripting Interview Questions (Programming)

- Install mono offline on CentOS (Server)

- C ++ inline functions (Programming)

- On the PC goes heavy security watch your startup items (Linux)

 
         
  UUID in Java
     
  Add Date : 2017-08-31      
         
         
         
  UUID (Universally Unique Identifier) A globally unique identifier is a number generated on a machine that is guaranteed to be unique to all machines in the same space-time. The Ethernet card address, nanosecond time, chip ID number, and many possible numbers are used in accordance with the standards established by the Open Software Foundation (OSF). A combination of the current date and time (the first part of the UUID is time dependent, if you generate a UUID after a few seconds and a UUID is generated, the first part is different and the rest is the same), the clock Sequence, a globally unique IEEE machine identification number (if a network card is obtained from the network card, no network card is otherwise available), the only drawback of the UUID is that the resulting string is longer

UUID is a 128-bit long number, generally expressed in hexadecimal. The core idea of the algorithm is to combine the machine's network card, local time, a random number to generate the UUID. Theoretically, if a machine generates 10,000,000 UUIDs per second, it can be guaranteed (in the sense of probability) that 3240 does not repeat. As a result, everyone can create UUIDs that do not conflict with other people. In this case, you do not need to consider the name of the establishment of the database replication problems.
UUID 1.5 is a new category, in java.util, it can be used to produce a so-called globally unique ID.

Package UUID;

Import java.util.UUID;

Public class test {
  Public static void main (String [] args) {
String uuid = UUID.randomUUID (). ToString ();
System.out.println (uuid);
}}
}}

Here are the results I ran three times

D0cd48ef-313a-405c-ac76-12cce5657dca
D7e1e24b-9574-4ea0-a08f-4cfa6965035f
C6b75eef-f6ca-4963-8c4f-26b72cb15eee
.
     
         
         
         
  More:      
 
- Android Fragment everything you need to know (Programming)
- Linux System Tutorial: Fix ImportError: No module named wxversion error (Linux)
- Oracle how to maintain the consistency of read? (Database)
- Sublime Text 3 (Linux)
- Shuffle Process Arrangement in MapReduce (Server)
- Linux System Getting Started Learning: The Linux ac command (Linux)
- The hash function under OpenSSL (Linux)
- Android custom title bar (Programming)
- ORA-12545: Connection failed because the target host or object does not exist (Database)
- OpenJDK 7 compiled under Ubuntu 14.04.3 64-bit (Linux)
- mydumper installation error process (Database)
- SSH security note (Linux)
- Oracle Database asynchronous IO cause slow query response (Database)
- Generators and iterators in Python (Programming)
- How to install Laravel PHP framework on CentOS 7 / Ubuntu 15.04 (Server)
- Win8 mount disk partitions under Ubuntu (Linux)
- Python Dir find a folder several files (Programming)
- Use PDFBox processing PDF documents (Linux)
- C # Future: Tracking null reference (Programming)
- JavaScript in null undefined summary (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.