Skip to content
Snippets Groups Projects

Simplify vlc_rand_bytes on Windows

Merged Steve Lhomme requested to merge robUx4/vlc:win_vlc_rand into master

Use system preferred RNG and skip the unnecessary initialization steps (in this context, which is definitely not security related) The vlc_rand_bytes function is now about 55x faster when called repeatedly in a loop See https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom for more details

Signed-off-by: Steve Lhomme robux4@ycbcr.xyz

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading