Skip to content

Instantly share code, notes, and snippets.

@f97one
Created August 20, 2018 12:47
Show Gist options
  • Save f97one/0f018a5dff792f2d561a4ce7065875ec to your computer and use it in GitHub Desktop.
Save f97one/0f018a5dff792f2d561a4ce7065875ec to your computer and use it in GitHub Desktop.
serialVersionUid の値をランダム生成する PowerShell スクリプト
$max = [Convert]::ToInt64(0x7fffffffffffffff, 10)
$min = $max * -1
$r = (Get-Random -min $min -max $max).ToString()
$r.Substring(0, $r.Length - 4).Replace(".", "") + "L"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment