fix PostMessageStream random secret generation

Time should be in seconds (not ms).