Drop dependency on package:uuid (dart-lang/sse#32)

Switch to a v4 UUID. We were not depending on the specific UUID version
used and the random approach has a simpler implementation.

Copy a small implementation of UUID generation from
https://github.com/dart-lang/usage/blob/16fbfd90c58f16e016a295a880bc722d2547d2c9/lib/uuid/uuid.dart

Refactor to a top level method since it is only used once from this
package.
5 files changed
tree: 762f02e4ec55ded0b44ef759c02d4963e999a4e2
  1. pkgs/