1. A device, comprising: a pseudorandom sequence generator configured to generate a pseudorandom binary sequence having a first sampling rate; and a digital filter configured to generate, based on the pseudorandom binary sequence, a spectrally shaped pseudorandom binary sequence having a second sampling rate equal to the first sampling rate multiplied by an integer upsampling factor of L>1, the digital filter comprising L filter branches consisting of a first subset of one or more filter branches and a second subset of one or more filter branches, each filter branch of the first subset being configured to generate a binary output which is equal to an input of the filter branch, and each filter branch of the second subset being configured to generate a binary output which is inverted with respect to an input of the filter branch.