コード例 #1
0
 public static void GetSecureRandom(this IPlatformServices platformServices, ulong[] output)
 {
     if (null == platformServices)
     {
         throw new ArgumentNullException("platformServices");
     }
     if (null == output)
     {
         throw new ArgumentNullException("output");
     }
     byte[] bytes = new byte[output.Length * 8];
     platformServices.GetSecureRandom(bytes);
     Buffer.BlockCopy((Array)bytes, 0, (Array)output, 0, bytes.Length);
 }