static int newNamespaceID ( ) { Random r = new Random ( ) ; r . setSeed ( FSNamesystem . now ( ) ) ; int newID = 0 ; while ( newID == 0 ) newID = r . nextInt ( 0x7FFFFFFF ) ; // use 31 bits only return newID ; }
Generate new namespaceID .