Update Renegade.Random.URandom.pas
This commit is contained in:
parent
fbc9aa0ca6
commit
4f09e7deb6
|
@ -102,7 +102,6 @@ begin
|
||||||
begin
|
begin
|
||||||
if FileExists('/dev/urandom') then
|
if FileExists('/dev/urandom') then
|
||||||
begin
|
begin
|
||||||
Writeln('URandom');
|
|
||||||
Buffer := TFileStream.Create('/dev/urandom', fmOpenRead);
|
Buffer := TFileStream.Create('/dev/urandom', fmOpenRead);
|
||||||
Buffer.Position := 0;
|
Buffer.Position := 0;
|
||||||
ReadBytes := 0;
|
ReadBytes := 0;
|
||||||
|
@ -115,7 +114,6 @@ begin
|
||||||
end
|
end
|
||||||
else if (not FileExists('/dev/udrandom')) then
|
else if (not FileExists('/dev/udrandom')) then
|
||||||
begin
|
begin
|
||||||
Writeln('Random');
|
|
||||||
RandomByteBuffer := MTRandomBytes((NBytes*2));
|
RandomByteBuffer := MTRandomBytes((NBytes*2));
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue