From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Master/Kryptografie/p2/GalTest.java | 71 +++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Master/Kryptografie/p2/GalTest.java (limited to 'Master/Kryptografie/p2/GalTest.java') diff --git a/Master/Kryptografie/p2/GalTest.java b/Master/Kryptografie/p2/GalTest.java new file mode 100644 index 0000000..88cb3f6 --- /dev/null +++ b/Master/Kryptografie/p2/GalTest.java @@ -0,0 +1,71 @@ +package krypto; +import java.util.Random; + +public class GalTest { + private int testSize; + private long startTime; + private long finishTime; + + private GalNumber[] galNumbers; + + public GalTest() { + this.setTestSize(1000); + this.init(); + } + + public GalTest(int testSize) { + this.setTestSize(testSize); + this.init(); + } + + public void init() { + galNumbers = new GalNumber[testSize]; + Random rnd = new Random(); + if (galNumbers != null) { + for (int i=0;i