---
title: "Pseudo-Random Bit Sequences"
canonical: "https://docs.magma-maths.org/CodingTheory/PseudoRandomBitSequences/index-pseudo-random-bit-sequences.html"
source: "https://docs.magma-maths.org/CodingTheory/PseudoRandomBitSequences/index-pseudo-random-bit-sequences.md"
part: "Coding Theory"
chapter: "Pseudo-Random Bit Sequences"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "../../index.md"}
  - {"title": "Coding Theory", "source": "../index-coding-theory.md"}
prev: {"title": "Hilbert Spaces", "source": "../QuantumCodes/hilbert-space.md"}
next: {"title": "Introduction", "source": "introduction.md"}
---

# Pseudo-Random Bit Sequences

- [Introduction](introduction.md)
- [Linear Feedback Shift Registers](lfsr.md)
  - [`LFSRSequence(C, S, t): RngUPolElt, SeqEnum, RngIntElt → SeqEnum`](lfsr.md#function-lfsrsequence-rngupolelt-seqenum-rngintelt)
  - [`LFSRStep(C, S): RngUPolElt, SeqEnum → SeqEnum`](lfsr.md#function-lfsrstep-rngupolelt-seqenum)
  - [`BerlekampMassey(S): SeqEnum → RngUPolElt, RngIntElt`](lfsr.md#function-berlekampmassey-seqenum)
  - [`ConnectionPolynomial(S): SeqEnum → RngUPolElt, RngIntElt`](lfsr.md#function-connectionpolynomial-seqenum)
  - [`CharacteristicPolynomial(S): SeqEnum → RngUPolElt, RngIntElt`](lfsr.md#function-characteristicpolynomial-seqenum)
  - [Example: Connection Polynomial via Berlekamp-Massey](lfsr.md#example-ex-ad3ed3)
  - [`ShrinkingGenerator(C1, S1, C2, S2, t): RngUPolElt, SeqEnum, RngUPolElt, SeqEnum, RngIntElt → SeqEnum`](lfsr.md#function-shrinkinggenerator-rngupolelt-seqenum-rngupolelt-seqenum-rngintelt)
- [Correlation Functions](correlation.md)
  - [`AutoCorrelation(S, t): SeqEnum, RngIntElt → RngIntElt`](correlation.md#function-autocorrelation-seqenum-rngintelt)
  - [Example: Autocorrelation of an LFSR Sequence](correlation.md#example-ex-e9917a)
  - [`CrossCorrelation(S1, S2, t): SeqEnum, SeqEnum, RngIntElt → RngIntElt`](correlation.md#function-crosscorrelation-seqenum-seqenum-rngintelt)
- [Decimation](misc.md)
  - [`Decimation(S, f, d): SeqEnum, RngIntElt, RngIntElt → SeqEnum`](misc.md#function-decimation-seqenum-rngintelt-rngintelt)
  - [`Decimation(S, f, d, t): SeqEnum, RngIntElt, RngIntElt, RngIntElt → SeqEnum`](misc.md#function-decimation-seqenum-rngintelt-rngintelt-rngintelt)
  - [Example: Decimating an LFSR Sequence](misc.md#example-ex-29a760)
- [Hash Functions](hash.md)
  - [`SHA1(S): SeqEnum → MonStgElt`](hash.md#function-sha1-seqenum)
  - [`SHA1(s): MonStgElt → MonStgElt`](hash.md#function-sha1-monstgelt)
  - [Example: Digest of a String and of Its Bytes](hash.md#example-ex-d53a66)
