DOC: Added readme for RandomPassword

Provided instructions to create native executable
This commit is contained in:
xpk
2025-05-13 15:56:50 +08:00
parent 72f06362f8
commit f5dafe8cbb
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
class PasswordGenerator { class PasswordGenerator {
private static final int DEFAULT_PASSWORD_LENGTH = 3; private static final int DEFAULT_PASSWORD_LENGTH = 4;
public static void main(String[] args) { public static void main(String[] args) {
try { try {
+5
View File
@@ -0,0 +1,5 @@
# Generate native image
```bash
native-image -Djava.io.tmpdir=~/tmp --parallelism=4 PasswordGenerator
```