add comment

pull/10/head
yuqing 2016-05-16 09:20:28 +08:00
parent 5cb9066ed1
commit ce39cdd497
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define PATCH_VERSION 5 #define PATCH_VERSION 6
#define DEFAULT_SN_FILENAME "/tmp/fastcommon_id_generator.sn" #define DEFAULT_SN_FILENAME "/tmp/fastcommon_id_generator.sn"
@ -421,7 +421,7 @@ ZEND_FUNCTION(fastcommon_id_generator_init)
} }
/* /*
long/string fastcommon_id_generator_next([int extra]) long/string fastcommon_id_generator_next([int extra = 0])
return id for success, false for fail return id for success, false for fail
return long in 64 bits OS, return string in 32 bits Os return long in 64 bits OS, return string in 32 bits Os
*/ */

View File

@ -9,7 +9,7 @@
/** /**
64 bits id generator for multi processes, the generated id format: 64 bits id generator for multi processes, the generated id format:
32 bits timestamp + X bits machine id + Y bits of extra data + Z bits serial number 32 bits timestamp + X bits machine id + Y bits of extra data + Z bits serial number
such as 12 bits machine id, 0 bits extra data and 20 bits serial number such as 12 bits machine id, 0 bits extra data and 20 bits serial number
*/ */
#ifndef ID_GENERATOR_H #ifndef ID_GENERATOR_H