File: python3

package info (click to toggle)
systemd 215-17%2Bdeb8u7
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 52,180 kB
  • ctags: 31,037
  • sloc: ansic: 192,918; xml: 39,605; sh: 13,002; makefile: 4,701; perl: 1,461; python: 1,355
file content (9 lines) | stat: -rwxr-xr-x 135 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/python3

import uuid
import systemd.id128

u = systemd.id128.randomize()

assert isinstance(u, uuid.UUID)
print('UUID:', u)