// Generates an S1 message (random data)
Generates an S1 message (random data)
// Generates an S1 message ( random data )
func (h *Handshaker) generateRandomData(s1 []byte) error {
	err := rand.GenerateCryptoSafeRandomData(s1[8:])
	if err != nil {
		return err
	}
	return nil
}
func ( h * Handshaker ) generateRandomData ( s1 [ ] byte ) error { err := rand . GenerateCryptoSafeRandomData ( s1 [ 8 : ] ) if err != nil { return err } return nil }
Generates an S1 message (random data)
Generates an S1 message ( random data )
// the s1 byte array is zero-initialized, since we didn't modify it, we're sending our time as 0