Created
November 27, 2019 16:40
-
-
Save SakiiR/a073f22c3943a530a2574dd7fde13e38 to your computer and use it in GitHub Desktop.
Using libc (rand, srand) etc using python :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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