Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,13 +0,0 @@
|
|||
with Ada.Streams.Stream_IO;
|
||||
with Ada.Text_IO;
|
||||
procedure Random is
|
||||
Number : Integer;
|
||||
Random_File : Ada.Streams.Stream_IO.File_Type;
|
||||
begin
|
||||
Ada.Streams.Stream_IO.Open (File => Random_File,
|
||||
Mode => Ada.Streams.Stream_IO.In_File,
|
||||
Name => "/dev/random");
|
||||
Integer'Read (Ada.Streams.Stream_IO.Stream (Random_File), Number);
|
||||
Ada.Streams.Stream_IO.Close (Random_File);
|
||||
Ada.Text_IO.Put_Line ("Number:" & Integer'Image (Number));
|
||||
end Random;
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
function Get-RandomInteger
|
||||
{
|
||||
Param
|
||||
(
|
||||
[Parameter(Mandatory=$false,
|
||||
ValueFromPipeline=$true,
|
||||
ValueFromPipelineByPropertyName=$true,
|
||||
Position=0)]
|
||||
[ValidateScript({$_ -ge 4})]
|
||||
[int[]]
|
||||
$InputObject = 64
|
||||
)
|
||||
|
||||
Begin
|
||||
{
|
||||
$rng = New-Object -TypeName System.Security.Cryptography.RNGCryptoServiceProvider
|
||||
}
|
||||
Process
|
||||
{
|
||||
foreach($count in $InputObject)
|
||||
{
|
||||
$bytes = New-Object -TypeName Byte[] -Argument $count
|
||||
$rng.GetBytes($bytes)
|
||||
[System.BitConverter]::ToInt32($bytes,0)
|
||||
}
|
||||
}
|
||||
End
|
||||
{
|
||||
Remove-Variable -Name rng -Scope Local
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
4,8,16,32,64,128 | Get-RandomInteger | Format-Wide {$_} -Column 6 -Force
|
||||
|
|
@ -1 +0,0 @@
|
|||
4,8,16,32,64,128 | Get-RandomInteger | Format-Wide {"0x{0:X}" -f $_} -Column 6 -Force
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
-- 28 Jul 2025
|
||||
include Settings
|
||||
-- 24 Aug 2025
|
||||
include Setting
|
||||
numeric digits 12
|
||||
|
||||
say 'RANDOM NUMBER GENERATOR (DEVICE)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue