Skip to content

Commit

Permalink
[fix] one more size_t instead of ulonglong
Browse files Browse the repository at this point in the history
  • Loading branch information
stf committed Sep 12, 2014
1 parent cf0fb5c commit 08a8fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysodium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def crypto_generichash_final(state, outlen=crypto_generichash_BYTES):

def randombytes(size):
buf = ctypes.create_string_buffer(size)
sodium.randombytes(buf, ctypes.c_ulonglong(size))
sodium.randombytes(buf, ctypes.c_size_t(size))
return buf.raw

def crypto_box_keypair():
Expand Down

1 comment on commit 08a8fd4

@rupole
Copy link

@rupole rupole commented on 08a8fd4 Sep 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was actually right to start with, randombytes takes an unsigned long long (although randombytes_buf uses a size_t)

Please sign in to comment.