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:
parent
e7affa24dc
commit
71823a6c49
8 changed files with 2349 additions and 0 deletions
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue