package org.jsmpp.util;

import java.util.Random;

/**
 * Session id generator.
 * 
 * @author uudashr
 * @version 1.0
 * @since 1.0
 *
 */
public class RandomSessionIDGenerator implements SessionIDGenerator<String> {
	private Random _random = new Random();
	
	/**
	 * Generate new session id. Max 64 char.
	 */
	public String newSessionId() {
		byte[] b = new byte[32];
		_random.nextBytes(b);
		return HexUtil.conventBytesToHexString(b);
	}
}

@@ -224,16 +224,21 @@
 ate 
+final 
 Random 
-_
 rand
@@ -375,9 +375,8 @@
 ;%0A%09%09
-_
 rand

Final the random variable