title: Java Changing variable from another class and the depending values
body: <p>I have a problem with my class variables, as always ^^
  So I'm constructing a class named Prng, with variables</p>
  
  <pre><code>private int randListSize = 10; 
  private byte randList[] = new byte[randListSize]; 
  private byte[] seed = new byte[]{ 34, -70, -4, 117, 98 }; 
  </code></pre>
  
  <p>the getters/setters associated
  and the method</p>
  
  <pre><code>public void prng() {
          SecureRandom random;
          try {
              random = SecureRandom.getInstance("SHA1PRNG"); 
              random.setSeed(seed);
              random.nextBytes(randList); 
          } catch (NoSuchAlgorithmException e) {
              e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>in another class named Test.java, I want to :
  1) set randListSize to /number of random bytes I want
  2) have the randList of this size, and not from original 10 size</p>
  
  <p>whenever I try, my randList is always of size 10. Can you help me please ?
  in my class Test I've written :</p>
  
  <pre><code>Prng prng = new Prng();
  System.out.println(prng.getRandListSize() + " " + prng.getRandList().length);
  prng.setRandListSize(11);
  System.out.println(prng.getRandListSize()+ " " + prng.getRandList().length);
  </code></pre>
  
  <p>which returns me "10 10 ; 11 10" and I want "11 11" at the end.</p>
  
  <p>EDIT : here's my getters/setters :</p>
  
  <pre><code>public int getRandListSize() {
      return randListSize;
  }
  
  public void setRandListSize(int randListSize) {
      this.randListSize = randListSize;
  }
  
  public byte[] getSeed() {
      return seed;
  }
  
  public void setSeed(byte[] seed) {
      this.seed = seed;
  }
  
  public byte[] getRandList() {
      return randList;
  }
  
  public void setRandList(byte[] randList) {
      this.randList = randList;
  }
  </code></pre>