this.clientRandom[i] = (byte)random.nextInt(256);
this.clientRandom[i] = (byte)random.nextInt();
    public void connect(CertificateVerifyer verifyer) throws IOException    {        this.verifyer = verifyer;        /*        * Send Client hello        *        * First, generate some random data.        */        this.clientRandom = new byte[32];        int t = (int)(System.currentTimeMillis() / 1000);        this.clientRandom[0] = (byte)(t >> 24);        this.clientRandom[1] = (byte)(t >> 16);        this.clientRandom[2] = (byte)(t >> 8);        this.clientRandom[3] = (byte)t;        for (int i = 4; i < clientRandom.length; i++)        {            this.clientRandom[i] = (byte)random.nextInt(256);        }        ByteArrayOutputStream os = new ByteArrayOutputStream();        TlsUtils.writeVersion(os);        os.write(this.clientRandom);        /*        * Length of Session id        */        TlsUtils.writeUint8((short)0, os);        /*        * Cipher suites        */        TlsCipherSuiteManager.writeCipherSuites(os);        /*        * Compression methods, just the null method.        */        byte[] compressionMethods = new byte[]{0x00};        TlsUtils.writeUint8((short)compressionMethods.length, os);        os.write(compressionMethods);        ByteArrayOutputStream bos = new ByteArrayOutputStream();        TlsUtils.writeUint8(HP_CLIENT_HELLO, bos);        TlsUtils.writeUint24(os.size(), bos);        bos.write(os.toByteArray());        byte[] message = bos.toByteArray();        rs.writeMessage(RL_HANDSHAKE, message, 0, message.length);        connection_state = CS_CLIENT_HELLO_SEND;        /*        * We will now read data, until we have completed the handshake.        */        while (connection_state != CS_DONE)        {            rs.readData();        }        this.tlsInputStream = new TlsInputStream(this);        this.tlsOutputStream = new TlsOuputStream(this);    }