import CodeBlock from '@theme/CodeBlock'; import java_examples from '!!raw-loader!../../../../../bindings/java/examples/java-app/src/main/java/org/iota/client/example/ExampleApp.java'; const javaFunctionName = 'public static void generateSeed() {', indexStart = java_examples.indexOf(javaFunctionName); const nextJavaFunctionName = 'public static void generateAddresses() {', indexEnd = java_examples.indexOf(nextJavaFunctionName); const generate_seed = java_examples.substring(indexStart, indexEnd); You can generate a seed, for example, using the SHA256 algorithm on some random input generated by a cryptographically secure pseudo-random generator, such as `SecretKey.generate()`: {generate_seed}