-4

Is there any 128-bit pseudorandom number generator available?

I tried the Blum Blum Shub Generator, but I can't produce a 128-bit pseudo-random number. Maybe before I produce a 128-bit pseudorandom number, I need to input a 128-bit prime number which is hard to determine.

CodesInChaos
  • 25,121
  • 2
  • 90
  • 129
goldroger
  • 1,737
  • 8
  • 33
  • 41

1 Answers1

3

BBS is probably the wrong choice for you needs.

AES in counter (CTR) mode will take a 128-bit key and produce 128-bits of output per iteration.

It also happens to be a lot faster than BBS.

Simon Johnson
  • 3,236
  • 17
  • 21