I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit af90121b authored by zzz's avatar zzz
Browse files

cache tweak

parent f015ce1f
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ package net.i2p.data;
*/
import net.i2p.util.RandomSource;
import net.i2p.util.SimpleByteCache;
/**
* 32 bytes, usually of random data.
......@@ -28,7 +29,7 @@ public class SessionTag extends SimpleDataStructure {
public SessionTag(boolean create) {
super();
if (create) {
_data = new byte[BYTE_LENGTH];
_data = SimpleByteCache.acquire(BYTE_LENGTH);
RandomSource.getInstance().nextBytes(_data);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment