changeset 92:96b9e046f45d

sranddev() for macs committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sat, 30 Jul 2022 07:36:45 -0400
parents 0477c50af5b0
children e5ea19b94639
files win95kg.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win95kg.c	Thu Jul 28 20:29:47 2022 -0400
+++ b/win95kg.c	Sat Jul 30 07:36:45 2022 -0400
@@ -81,7 +81,11 @@
 }
 
 int main(int argc, char* argv[]) {
+#ifndef __APPLE__
 	srand((unsigned) time(NULL)); // magic rand() stuff :p
+#else
+	sranddev();
+#endif
     if (argc >= 2) {
         if (strcmp(argv[1], "--office") == 0) {
 			printf("%04d-%07d", office_prefix(), win95_suffix());
@@ -96,4 +100,4 @@
     }
 	printf("usage: %s [--normal] [--oem] [--office]", argv[0]);
     return 0;
-}
\ No newline at end of file
+}