Reduced randomness in quantum cryptography with sequences of qubits encoded in the same basis