Skip to content

Instantly share code, notes, and snippets.

@SakiiR SakiiR/libc.py
Created Nov 27, 2019

Embed
What would you like to do?
Using libc (rand, srand) etc using python :)
from ctypes import CDLL
libc = CDLL("libc.so.6")
now = int(floor(time.time()))
libc.srand(now)
print(libc.rand())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.