Delphi isaac

Discussion in 'С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby' started by triblekill, 3 Mar 2018.

  1. triblekill

    triblekill Member

    Joined:
    21 Aug 2011
    Messages:
    351
    Likes Received:
    94
    Reputations:
    1
    Пробую ГПСЧ isaac не работает
    x.reseed;
    получаю одинаковые значения после каждого перезапуска программы

    Code:
    uses isaac;
    
    procedure TForm1.Button4Click(Sender: TObject);
    var
      x: TIsaac;
    begin
    x:=Tisaac.Create;
    x.reSeed;
    Memo1.lines.Add(IntToHex(x.val, 8));
    end;
    
    end.
     
  2. triblekill

    triblekill Member

    Joined:
    21 Aug 2011
    Messages:
    351
    Likes Received:
    94
    Reputations:
    1
    Уже разобрался, но сохраню в секрете