A few days ago, my colleague asked me a question about how the pre master key was generated, because I didn't know much about the https principle at the time, so I spent a lot of time querying a lot of information and understanding the process of https creating links. I'm seeing how many pages are generated for the pre master key and I haven't explained it. I am browsing this page
https://security.stackexchange.com/questions/63971/how-is-the-premaster-secret-used-in-tls-generated. The site has two answers, one is 2 The character is the version number and the remaining 46 characters are random values. Another answer is to use the RSA or DH algorithm. Both of these answers are the opposite. Then I queried
https://tools.ietf.org/html/rfc5246#section-7.4.7.1. The above explanation tends to the first answer. So my colleague's explanation is that the pre master key is generated by the system using a random value generator. Colleagues say that the value of pre master key is generated using random_C and random_S, and neither of us can convince anyone. So come over and ask a professional. How is the pre master key generated?
I am using this document translated by Google. Chinese original text is as follows: