1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

Ports: Add initial Python 3.6 port

This port is experimental and not all pythom modules are working.
But this is an initial shot which can be further worked on, as
SerenityOS gets more mature. :^)

The main limitation is that locales, threading and time related
functions are not working.
This commit is contained in:
Emanuel Sprung 2019-11-11 17:52:03 +01:00 committed by Andreas Kling
parent e7affa24dc
commit 71823a6c49
8 changed files with 2349 additions and 0 deletions

View file

@ -0,0 +1,16 @@
diff --git a/Python/random.c b/Python/random.c
index 46e3bb5..a4a7136 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -316,7 +316,7 @@ dev_urandom(char *buffer, Py_ssize_t size, int blocking, int raise)
} while (0 < size);
}
else {
- fd = _Py_open_noraise("/dev/urandom", O_RDONLY);
+ fd = _Py_open_noraise("/dev/random", O_RDONLY);
if (fd < 0) {
return -1;
}
--
2.17.1