Title: [293549] trunk/Source/bmalloc
- Revision
- 293549
- Author
- ross.kirsl...@sony.com
- Date
- 2022-04-27 17:32:48 -0700 (Wed, 27 Apr 2022)
Log Message
Unreviewed libpas build fix for PlayStation.
https://bugs.webkit.org/show_bug.cgi?id=239834
* libpas/src/libpas/pas_random.h:
(pas_get_random):
Temporarily disable path on PlayStation.
Canonical link: https://commits.webkit.org/250069@main
Modified Paths
Diff
Modified: trunk/Source/bmalloc/ChangeLog (293548 => 293549)
--- trunk/Source/bmalloc/ChangeLog 2022-04-28 00:29:20 UTC (rev 293548)
+++ trunk/Source/bmalloc/ChangeLog 2022-04-28 00:32:48 UTC (rev 293549)
@@ -1,3 +1,12 @@
+2022-04-27 Ross Kirsling <rkirsl...@gmail.com>
+
+ Unreviewed libpas build fix for PlayStation.
+ https://bugs.webkit.org/show_bug.cgi?id=239834
+
+ * libpas/src/libpas/pas_random.h:
+ (pas_get_random):
+ Temporarily disable path on PlayStation.
+
2022-04-25 Brandon Stewart <brandonstew...@apple.com>
[libpas] Implement secure random numbers
Modified: trunk/Source/bmalloc/libpas/src/libpas/pas_random.h (293548 => 293549)
--- trunk/Source/bmalloc/libpas/src/libpas/pas_random.h 2022-04-28 00:29:20 UTC (rev 293548)
+++ trunk/Source/bmalloc/libpas/src/libpas/pas_random.h 2022-04-28 00:32:48 UTC (rev 293549)
@@ -72,12 +72,12 @@
case pas_secure_random:
/* Secure random is only supported on Darwin and FreeBSD at the moment due to arc4random being built into the
stdlib. Fall back to fast behavior on other operating systems. */
- #if PAS_OS(DARWIN) || PAS_OS(FREEBSD)
+#if PAS_OS(DARWIN) || (PAS_OS(FREEBSD) && !PAS_PLATFORM(PLAYSTATION))
rand_value = arc4random_uniform(upper_bound);
- #else
+#else
pas_fast_random_state = pas_xorshift32(pas_fast_random_state);
rand_value = pas_fast_random_state % upper_bound;
- #endif
+#endif
break;
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes