Package rsa

Class QRand

java.lang.Object
rsa.QRand
All Implemented Interfaces:
Runnable

public class QRand extends Object implements Runnable
Genera un numero casuale attraverso il webservice ANU Quantum Random Number Generator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Seed per la generazione di numeri casuali volatile significa che il valore può essere modificato da più thread
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    void
    run()
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • seed

      public volatile long seed
      Seed per la generazione di numeri casuali volatile significa che il valore può essere modificato da più thread
  • Constructor Details

    • QRand

      public QRand()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getSeed

      public long getSeed()