News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

BCryptGenRandom

Started by jj2007, December 12, 2017, 08:16:37 AM

Previous topic - Next topic

jj2007

Rumours say it's fast and good quality...

include \masm32\MasmBasic\MasmBasic.inc         ; download
  Init
  randbytes=1000000
  Let edi=New$(randbytes)
  Dll "BCrypt"
  Declare void BCryptGenRandom, 4
  BCryptGenRandom(0, edi, randbytes, 2)
  For_ ecx=0 To 29
        Print Str$("%i\n", dword ptr [edi+4*ecx])
  Next
  Inkey "hit any key"
EndOfCode