I'm reading a paper called More Efficient Oblivious Transfer Extensions with Security for Malicious Adversaries by Gilad Asharov, Yehuda Lindell, Thomas Schneider and Michael Zohner.
On page 8 they present their protocol. When presenting the tools being used, they write:
If my understanding is correct they use a pseudorandom generator called G which takes as an input an object consisting of zeros and ones of length k and produce an object of zeros and ones of length m.
My questions is: How can I implement this in Python?
How can I implement a pseudorandom generator which takes a seed of size k and produces an output of size m?