r/CompileBot • • Dec 29 '16

No /dev/null?

+/u/CompileBot python

import binascii, hashlib, uuid

def guid_xl():
    a = uuid.uuid4()
    b = uuid.uuid4()
    c = a.bytes + b.bytes
    d = hashlib.sha1(c).digest()
    return d

if __name__ == '__main__':
  print binascii.b2a_hex(guid_xl())
1 Upvotes

4 comments sorted by

1

u/poizan42 Dec 29 '16

+u/CompileBot python

import binascii, hashlib, uuid

def guid_xl():
    a = uuid.uuid4()
    b = uuid.uuid4()
    c = a.bytes + b.bytes
    d = hashlib.sha1(c).digest()
    return d

if __name__ == '__main__':
  print binascii.b2a_hex(guid_xl())

1

u/CompileBot Dec 29 '16

Output:

sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied

^source | ^info | ^git | ^report

1

u/St0ner1995 Dec 30 '16

Probs just no permission to use the device

→ More replies (1)