diff options
Diffstat (limited to 'src/idManager.c')
| -rw-r--r-- | src/idManager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/idManager.c b/src/idManager.c index 3162771..ea7e679 100644 --- a/src/idManager.c +++ b/src/idManager.c @@ -45,13 +45,15 @@ int getNewID() assert( listID != NULL ); do{ + ret = random() % MAX_ID; +/* ret = ++lastID; if( lastID > MAX_ID ) { lastID = 0; } - +*/ }while( isRegisterID(ret) != -1 ); addList(listID, newInt(ret) ); |