mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 08:59:10 +08:00
kaptcha
This commit is contained in:
parent
05e089358a
commit
a61cfef88a
@ -38,6 +38,9 @@ import com.google.code.kaptcha.util.Configurable;
|
||||
public class RandomColorWordRenderer extends Configurable implements WordRenderer
|
||||
{
|
||||
ConfigHelper configHelper = new ConfigHelper();
|
||||
|
||||
Random random = new SecureRandom();
|
||||
|
||||
/**
|
||||
* Renders a word to an image.
|
||||
*
|
||||
@ -69,8 +72,7 @@ public class RandomColorWordRenderer extends Configurable implements WordRendere
|
||||
g2D.setRenderingHints(hints);
|
||||
|
||||
FontRenderContext frc = g2D.getFontRenderContext();
|
||||
Random random = new SecureRandom();
|
||||
|
||||
|
||||
int startPosY = (height - fontSize) / 5 + fontSize;
|
||||
|
||||
char[] wordChars = word.toCharArray();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user