summaryrefslogtreecommitdiff
path: root/libc/stdlib/srand48_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/srand48_r.c')
-rw-r--r--libc/stdlib/srand48_r.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/stdlib/srand48_r.c b/libc/stdlib/srand48_r.c
index c0fa38e90..c7c510864 100644
--- a/libc/stdlib/srand48_r.c
+++ b/libc/stdlib/srand48_r.c
@@ -32,7 +32,13 @@ int srand48_r (seedval, buffer)
buffer->__x[1] = seedval & 0xffffl;
buffer->__x[0] = 0x330e;
+#ifdef __UCLIBC_HAS_LONG_LONG__
buffer->__a = 0x5deece66dull;
+#else
+ buffer->__a1 = 0x5;
+ buffer->__a0 = 0xdeece66d;
+#endif
+
buffer->__c = 0xb;
buffer->__init = 1;