Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / native_client_sdk / src / examples / tutorial / dlopen / eightball.cc
blobbf7d352931a491e0d6cbcd49b48fc9e1c9ab42b4
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include <stdlib.h>
6 #include <stdio.h>
8 #include "eightball.h"
10 extern "C" const char* Magic8Ball() {
11 const int NSIDES = 8;
12 const char* answer[NSIDES] = { "YES", "NO", "MAYBE", "MAYBE NOT",
13 "DEFINITELY", "ASK ME TOMORROW",
14 "PARTLY CLOUDY", "42", };
15 return answer[rand() % NSIDES];