mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-11-26 04:26:05 -05:00
Add method to set seed
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
This commit is contained in:
@@ -9,6 +9,10 @@ public class HelperFunctions {
|
||||
|
||||
private static Random random = new Random(seed);
|
||||
|
||||
synchronized public static void setSeed(long seed){
|
||||
random.setSeed(seed);
|
||||
}
|
||||
|
||||
public static void setRenderingHints(Graphics2D g2d) {
|
||||
g2d.setRenderingHint(
|
||||
RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
||||
|
||||
Reference in New Issue
Block a user