Ticket #41842

Unpredictable random seed for Windows (msys2)

Open Date: 2021-03-24 07:39 Last Update: 2021-04-04 14:30

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
4

Details

Add support for entropy based random seeds for Windows builds. Currently Windows falls back to using time() for setting random seed.

Ticket History (3/11 Histories)

2021-03-24 07:39 Updated by: cazfi
  • New Ticket "Unpredictable random seed for Windows" created
2021-03-24 08:56 Updated by: cazfi
  • Resolution Update from None to Accepted
2021-03-26 10:13 Updated by: cazfi
  • Resolution Update from Accepted to None
Comment

Current patch ignores the random seed generated. ( generate_seed_bcryptgenrandom() does not set it )

2021-03-29 12:38 Updated by: cazfi
Comment

New versions that sets the genarated seed to use.

2021-03-29 12:38 Updated by: cazfi
  • Resolution Update from None to Accepted
2021-04-02 05:52 Updated by: cazfi
  • Summary Updated
Comment

This works fine on msys2.

Msys1 does not have the bcrypt* support needed, so it still falls back to old time based random sources.

Still targeting to S2_6, since we do msys2 builds from that branch too.

2021-04-04 14:30 Updated by: cazfi
  • Status Update from Open to Closed
  • Owner Update from (None) to cazfi
  • Resolution Update from Accepted to Fixed

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login