Generate nonces with default length 30

Twitter's REST API 1.1 seemes to reject requests with nonces that are
to long. In my case the /dev/urandom-based nonces were ~55 chars long.

Fixes the (random) and /dev/urandom nonce generators.