Skip to content

Instantly share code, notes, and snippets.

@123jimin
Created March 27, 2013 16:21
Show Gist options
  • Save 123jimin/5255598 to your computer and use it in GitHub Desktop.
Save 123jimin/5255598 to your computer and use it in GitHub Desktop.
An example shows that a seed can encode a 6-byte long string.
import java.util.Random;
public class X{
static{
byte[] b = new byte[6];
new Random(0xFE7147F36BBFL).nextBytes(b);
System.out.println(new String(b));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment