bundles/org.eclipse.packagedrone.repo/src/org/eclipse/packagedrone/repo/utils/Tokens.java
public static String createToken ( final int length )
    {
        final byte[] data = new byte[length];

        random.nextBytes ( data );

        return Strings.hex ( data );
    }
public static String createToken ( final int length )
    {
        final byte[] data = new byte[length];

        random.nextBytes ( data );

        return Strings.hex ( data );
    }
public static String createToken ( final int length ) { final byte [ ] data = new byte [ length ] ; random . nextBytes ( data ) ; return Strings . hex ( data ) ; }
Create a random token
<p>
This method uses the internal instance of of a {@link SecureRandom}
generator to create a new token.
</p>

@param length
the length of the token
@return the newly created token, never returns <code>null</code>
Create a random token <p > This method uses the internal instance of of a { @link SecureRandom } generator to create a new token . < / p >