Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue